mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-26 04:57:50 +02:00
fix: fix crowdin mapping for pt-BR (#5249)
This commit is contained in:
parent
9e615eff02
commit
36bea24f67
1 changed files with 14 additions and 0 deletions
|
@ -12,6 +12,14 @@ api_token_env: 'CROWDIN_PERSONAL_TOKEN'
|
||||||
#
|
#
|
||||||
preserve_hierarchy: true
|
preserve_hierarchy: true
|
||||||
|
|
||||||
|
# We generally want to use the the "two-letters-code" of a locale (ie the language)
|
||||||
|
# But not for all locales!
|
||||||
|
# "pt-BR" may be better to remain as "pt-BR" instead of being transformed to "pt"
|
||||||
|
# Note: &/* is Yaml anchor syntax: https://support.atlassian.com/bitbucket-cloud/docs/yaml-anchors/
|
||||||
|
languages_mapping: &languages_mapping
|
||||||
|
two_letters_code:
|
||||||
|
'pt-BR': 'pt-BR'
|
||||||
|
|
||||||
#
|
#
|
||||||
# Files configuration
|
# Files configuration
|
||||||
#
|
#
|
||||||
|
@ -20,27 +28,33 @@ files:
|
||||||
{
|
{
|
||||||
source: '/website/i18n/en/**/*',
|
source: '/website/i18n/en/**/*',
|
||||||
translation: '/website/i18n/%two_letters_code%/**/%original_file_name%',
|
translation: '/website/i18n/%two_letters_code%/**/%original_file_name%',
|
||||||
|
languages_mapping: *languages_mapping,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
source: '/website/docs/**/*',
|
source: '/website/docs/**/*',
|
||||||
translation: '/website/i18n/%two_letters_code%/docusaurus-plugin-content-docs/current/**/%original_file_name%',
|
translation: '/website/i18n/%two_letters_code%/docusaurus-plugin-content-docs/current/**/%original_file_name%',
|
||||||
|
languages_mapping: *languages_mapping,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
source: '/website/community/**/*',
|
source: '/website/community/**/*',
|
||||||
translation: '/website/i18n/%two_letters_code%/docusaurus-plugin-content-docs-community/current/**/%original_file_name%',
|
translation: '/website/i18n/%two_letters_code%/docusaurus-plugin-content-docs-community/current/**/%original_file_name%',
|
||||||
|
languages_mapping: *languages_mapping,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
source: '/website/versioned_docs/**/*',
|
source: '/website/versioned_docs/**/*',
|
||||||
translation: '/website/i18n/%two_letters_code%/docusaurus-plugin-content-docs/**/%original_file_name%',
|
translation: '/website/i18n/%two_letters_code%/docusaurus-plugin-content-docs/**/%original_file_name%',
|
||||||
|
languages_mapping: *languages_mapping,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
source: '/website/blog/**/*',
|
source: '/website/blog/**/*',
|
||||||
translation: '/website/i18n/%two_letters_code%/docusaurus-plugin-content-blog/**/%original_file_name%',
|
translation: '/website/i18n/%two_letters_code%/docusaurus-plugin-content-blog/**/%original_file_name%',
|
||||||
|
languages_mapping: *languages_mapping,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
source: '/website/src/pages/**/*',
|
source: '/website/src/pages/**/*',
|
||||||
translation: '/website/i18n/%two_letters_code%/docusaurus-plugin-content-pages/**/%original_file_name%',
|
translation: '/website/i18n/%two_letters_code%/docusaurus-plugin-content-pages/**/%original_file_name%',
|
||||||
ignore: ['/**/*.js', '/**/*.jsx', '/**/*.ts', '/**/*.tsx', '/**/*.css'],
|
ignore: ['/**/*.js', '/**/*.jsx', '/**/*.ts', '/**/*.tsx', '/**/*.css'],
|
||||||
|
languages_mapping: *languages_mapping,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue