🌐(react) add i18n
We need to be able to use localized texts for various components, like for accessible labels. We decided to setup a lightweight implementation of localizable to avoid relying on an existing heavy library. The Provider includes by default full translations for english, and it is also made to be able to load easily any custom locale directly from the Provider.
This commit is contained in:
23
crowdin/config.yml
Normal file
23
crowdin/config.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
#
|
||||
# Your crowdin's credentials
|
||||
#
|
||||
api_token_env: CROWDIN_API_TOKEN
|
||||
project_id_env: CROWDIN_PROJECT_ID
|
||||
base_path_env: CROWDIN_BASE_PATH
|
||||
|
||||
#
|
||||
# Choose file structure in crowdin
|
||||
# e.g. true or false
|
||||
#
|
||||
preserve_hierarchy: true
|
||||
|
||||
#
|
||||
# Files configuration
|
||||
#
|
||||
files: [
|
||||
{
|
||||
source : "/packages/react/src/locales/en-US.json",
|
||||
dest: "/packages/react/en-US.json",
|
||||
translation : "/packages/react/src/locales/%locale%.json"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user