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.
24 lines
423 B
YAML
24 lines
423 B
YAML
#
|
|
# 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"
|
|
}
|
|
]
|