You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 16, 2022. It is now read-only.
"mechanismAccess": "Access to the localization engine",
15
+
"sourcesOnGitHub": "Source codes on"
16
+
},
17
+
"langStructureCaption": "Material Docs has a built-in localization mechanism. The language pack has the following structure:",
18
+
"langStructureName": "The name of the language pack. (_recommends naming according to standards, e.g. __en-us___)",
19
+
"langStructureLabel": "The nice name of the language pack will be displayed in the interface.",
20
+
"langStructureLocale": "The object that stores your localization data.",
21
+
"langStructureLoadLang": "The function to be called when the language is loaded. Needed to get localization from a remote host.",
22
+
"langStructureComment": "One of the parameters must be defined in the Lang object __: _locale_ or _loadLang_!__",
23
+
"creatingLang": "Let's create a language pack for existing pages and transfer it to",
24
+
"applyingLang": "Now that we have created one language pack, we can start the Material Docs localization system. To do this, you need to transfer the package to",
25
+
"appliedLang": "A language field appeared in the upper right corner.",
26
+
"accessingLang": "Now, let's get the text from the language pack. To do this, we will use the ```<Locale />``` component. In the parameter ___path___ specifies the path to the variable inside the _locale_ object in the language pack.",
27
+
"accessingLangComment": "> Please note that localization of the ```<Markdown />``` component needs to be done differently. This component contains\n> own parameter ___locale___, with which we advise you to specify the path in the language pack. ",
28
+
"translating": "After we have created ___defaultLanguage___, we can move on to translation.",
29
+
"translatingComment": "Use only the fields specified in the ___locale___ field of the __ default language pack__.",
30
+
"createTranslate": "Let's create a translation:",
31
+
"missingFieldsComment": "Note that __translation__ contains __not all of the fields__ that are in the standard language pack. Fields that are not in the translation __ will be taken from the standard package __.",
32
+
"providingLang": "Now, let's pass the ___langs___ parameter to the ```<DocsLayout />``` component:",
33
+
"languageSwitch": "Now, the language selection button on the top right of the interface is available and offers a choice of 2 languages.",
34
+
"interfaceTranslating": "The MaterialDocs interface is in English by default. In order to translate it, you need to add to the next\nstructure in the ___locale___ field of the language pack:",
35
+
"interfaceTranslated": "Now, the documentation interface has been translated. ",
36
+
"usingHooks": "You can access the localization engine using the ___useLang()___ hook or the ___withLang()___ higher-order component. We advise you to use them only as a last resort. ",
37
+
"sourcesOnGitHub": "You can find the sources for this example at",
38
+
"here": "here"
39
+
40
+
},
6
41
"HostingMaterialDocsOnGHPagesTutorial": {
7
42
"headers": {
8
43
"hostingOnGH": "Hosting Material Docs on GitHub Pages",
"mechanismAccess": "Доступ к механизму локализации",
15
+
"sourcesOnGitHub": "Исходники на"
16
+
},
17
+
"langStructureCaption": "В Material Docs присутствует встроенный механизм для локализации. Языковой пакет имеет следующую структуру:",
18
+
"langStructureName": "Название языкового пакета. (_рекомендует называть в соответствии со стандартами, например __en-us___)",
19
+
"langStructureLabel": "Красивое названия языкового пакета, будет отображено в интерфейсе.",
20
+
"langStructureLocale": " Объект, в котором хранятся ваши данные о локализации. ",
21
+
"langStructureLoadLang": "Функция, которая будет вызвана при загрузке языка. Нужна для получения локализации с удаленного хоста.",
22
+
"langStructureComment": "В объекте Lang __обязательно должен быть определен один из параметров: _locale_ или _loadLang_!__",
23
+
"creatingLang": "Создадим языковой пакет для существующих страниц и передадим его в",
24
+
"applyingLang": "Теперь, когда мы создали один языковой пакет, мы можем запустить систему локализации Material Docs. Для этого \nнужно передать пакет в",
25
+
"appliedLang": "В правом верхнем углу появилось поле с языком.",
26
+
"accessingLang": "Теперь, давайте достанем текст из языкового пакета. Для этого воспользуемся компонентом ```<Locale/>```. В параметре ___path___\n указывается путь к переменной внутри объекта _locale_ в языковом пакете.",
27
+
"accessingLangComment": "> Обратите внимание, локализацию компонента ```<Markdown/>``` нужно проводить иначе. В этом компоненте присутствует \n> собственный параметр ___locale___, с помощью которого мы советуем указывать путь в языковом пакете. ",
28
+
"translating": "После того, как мы создали ___defaultLanguage___, можно переходить к переводу.",
29
+
"translatingComment": "Используйте только те поля, которые указаны в поле ___locale___ __языкового пакета по умолчанию__.",
30
+
"createTranslate": "Создадим перевод:",
31
+
"missingFieldsComment": "Заметьте, __перевод__ содержит __не все поля__, которые присутствуют в стандартном языковом пакете. Поля, которых нет в переводе __будут взяты из стандартного пакета__.",
32
+
"providingLang": "Теперь, давайте передадим в компонент ```<DocsLayout/>``` параметр ___langs___:",
33
+
"languageSwitch": "Теперь, кнопка выбора языка справа сверху интерфейса доступна и предлагает на выбор 2 языка.",
34
+
"interfaceTranslating": "Интерфейс MaterialDocs по умолчанию имеет английский язык. Для того, чтоб перевести его, необходимо добавить в следующую\nструктуру в поле ___locale___ языкового пакета:",
"usingHooks": "Вы можете получить доступ к механизму локализации с помощью хука ___useLang()___ или компонента высшего порядка ___withLang()___. Советуем пользоваться ими только в крайних случаях. ",
37
+
"sourcesOnGitHub": "Вы можете найти исходники этого примера на",
38
+
"here": "здесь"
39
+
40
+
},
6
41
"HostingMaterialDocsOnGHPagesTutorial": {
7
42
"headers": {
8
43
"hostingOnGH": "Хостинг Material Docs на GitHub Pages",
0 commit comments