🌐(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:
@@ -101,6 +101,20 @@ jobs:
|
||||
name: Run test suites over all workspaces
|
||||
command: yarn test
|
||||
|
||||
# ---- Internationalization ----
|
||||
crowdin-upload:
|
||||
docker:
|
||||
- image: crowdin/cli:3.10.0
|
||||
auth:
|
||||
username: $DOCKER_USER
|
||||
password: $DOCKER_PASS
|
||||
working_directory: ~/cunningham
|
||||
steps:
|
||||
- *checkout_cunningham
|
||||
- run:
|
||||
name: upload translation files to crowdin
|
||||
command: crowdin upload sources -c crowdin/config.yml
|
||||
|
||||
# ---- Deploy ----
|
||||
publish-storybook:
|
||||
docker:
|
||||
@@ -167,6 +181,14 @@ workflows:
|
||||
filters:
|
||||
tags:
|
||||
only: /.*/
|
||||
# ---- Internationalization ----
|
||||
- crowdin-upload:
|
||||
filters:
|
||||
branches:
|
||||
only:
|
||||
- main
|
||||
requires:
|
||||
- build
|
||||
# ---- Codebase ----
|
||||
- build:
|
||||
filters:
|
||||
|
||||
Reference in New Issue
Block a user