Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic i18n support #239

Merged
merged 1 commit into from
Jan 27, 2023
Merged

Basic i18n support #239

merged 1 commit into from
Jan 27, 2023

Conversation

graue
Copy link
Contributor

@graue graue commented Jan 24, 2023

Contains 3 translatable strings, 1 of which ("Get directions") I translated to Spanish based on Wiktionary and it may be wrong.

image

The translation may be tested by adding ?locale=es to the end of the BikeHopper URL.

To extract default messages:

npm run extract

To compile translations:

./compile-langs.sh

TODO:

Relevant to #238

Contains 3 translatable strings, 1 of which is (possibly badly)
translated to Spanish

To extract default messages:
  npm run extract

To compile translations:
  ./compile-langs.sh

TODO:
 - add lint rules https://formatjs.io/docs/guides/develop#linter-installation
 - integrate with translation tooling https://formatjs.io/docs/getting-started/application-workflow#pipeline
 - translate more messages + numbers
@graue graue added the enhancement New feature or request label Jan 26, 2023
@vincepmartin
Copy link
Contributor

Tested locally ok for me in spanish.

@graue graue merged commit 8200ae6 into main Jan 27, 2023
@graue graue deleted the graue/intl branch January 27, 2023 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants