mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-22 21:47:01 +02:00
i18n: use zh-TW and zh-CN over zh-Hant and zh-Hans (#377)
Both crowdin and docsearch i18n configs use TW and CN over Hant and Hans. This should reduce some config confusions. cc @ericnakagawa. Also, apparently you're working on algolia search i18n?
This commit is contained in:
parent
c08142c094
commit
00270c26a7
5 changed files with 17 additions and 17 deletions
|
@ -41,8 +41,8 @@ files:
|
||||||
'tr': 'tr'
|
'tr': 'tr'
|
||||||
'uk': 'uk'
|
'uk': 'uk'
|
||||||
'vi': 'vi'
|
'vi': 'vi'
|
||||||
'zh-CN': 'zh-Hans'
|
'zh-CN': 'zh-CN'
|
||||||
'zh-TW': 'zh-Hant'
|
'zh-TW': 'zh-TW'
|
||||||
-
|
-
|
||||||
source: '/website/i18n/en.json'
|
source: '/website/i18n/en.json'
|
||||||
translation: '/website/i18n/%locale%.json'
|
translation: '/website/i18n/%locale%.json'
|
||||||
|
|
|
@ -140,8 +140,8 @@ files:
|
||||||
'ko': 'ko'
|
'ko': 'ko'
|
||||||
'mr': 'mr-IN'
|
'mr': 'mr-IN'
|
||||||
'pt-BR': 'pt-BR'
|
'pt-BR': 'pt-BR'
|
||||||
'zh-CN': 'zh-Hans'
|
'zh-CN': 'zh-CN'
|
||||||
'zh-TW': 'zh-Hant'
|
'zh-TW': 'zh-TW'
|
||||||
```
|
```
|
||||||
|
|
||||||
You can go [here](https://support.crowdin.com/configuration-file/) to learn more about customizing your `crowdin.yaml` file.
|
You can go [here](https://support.crowdin.com/configuration-file/) to learn more about customizing your `crowdin.yaml` file.
|
||||||
|
|
|
@ -41,8 +41,8 @@ files:
|
||||||
'tr': 'tr'
|
'tr': 'tr'
|
||||||
'uk': 'uk'
|
'uk': 'uk'
|
||||||
'vi': 'vi'
|
'vi': 'vi'
|
||||||
'zh-CN': 'zh-Hans'
|
'zh-CN': 'zh-CN'
|
||||||
'zh-TW': 'zh-Hant'
|
'zh-TW': 'zh-TW'
|
||||||
-
|
-
|
||||||
source: '/website/i18n/en.json'
|
source: '/website/i18n/en.json'
|
||||||
translation: '/website/i18n/%locale%.json'
|
translation: '/website/i18n/%locale%.json'
|
||||||
|
|
|
@ -174,8 +174,8 @@ const languages = [
|
||||||
{
|
{
|
||||||
enabled: false,
|
enabled: false,
|
||||||
name: '中文',
|
name: '中文',
|
||||||
tag: 'zh-Hans',
|
tag: 'zh-CN',
|
||||||
},
|
},
|
||||||
{enabled: false, name: '繁體中文', tag: 'zh-Hant'},
|
{enabled: false, name: '繁體中文', tag: 'zh-TW'},
|
||||||
];
|
];
|
||||||
module.exports = languages;
|
module.exports = languages;
|
||||||
|
|
|
@ -174,12 +174,12 @@ const languages = [
|
||||||
{
|
{
|
||||||
enabled: false,
|
enabled: false,
|
||||||
name: "简体中文",
|
name: "简体中文",
|
||||||
tag: "zh-Hans"
|
tag: "zh-CN"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
enabled: false,
|
enabled: false,
|
||||||
name: "繁體中文",
|
name: "繁體中文",
|
||||||
tag: "zh-Hant"
|
tag: "zh-TW"
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
module.exports = languages;
|
module.exports = languages;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue