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

i18n app localization #557

Open
RyanTG opened this issue Sep 23, 2024 · 4 comments
Open

i18n app localization #557

RyanTG opened this issue Sep 23, 2024 · 4 comments

Comments

@RyanTG
Copy link
Collaborator

RyanTG commented Sep 23, 2024

A user asked if we could provide translations. Seems like the solution is expo-localization and either i18n-js or react-i18next + i18next.

https://docs.expo.dev/versions/latest/sdk/localization/
Guide: https://docs.expo.dev/guides/localization/
Guide: https://ilearnedathing.com/internationalizing-a-react-native-app-with-i18next-and-expo-part-1
Guide: https://phrase.com/blog/posts/react-native-i18n-with-expo-and-i18next-part-1/
Another guide: https://dev.to/lucasferreiralimax/i18n-in-react-native-with-expo-2j0j

Haven't explored this further, but will. Would need others to do the translations.

@damianvila
Copy link

Count with me for the Spanish (Spain) translation. Thanks!

@Kadajett
Copy link

I can help with implementation, and brazilian portuguese translations!

@Kadajett
Copy link

I have used react-i18next before and its good.

My recommendation is to build out a typography component, that accepts a child of text, and an optional id for i18n. This way, you can migrate slowly to i18n. Otherwise, it can be a lengthy and expensive process.

@RyanTG
Copy link
Collaborator Author

RyanTG commented Jan 22, 2025

Thanks! I've been working on an en > translation.json file that essentially looks like this:

"AppAlert": {
    "motd": "Message of the Day!"
  },
  "FilterRecentActivity": {
    "filterRecentActivity": "Filter Recent Activity"
  },
  "LocationActivity": {
    "highScore": "High score",
    "confirmed": "Line-up confirmed",
    "locationActivity": "Location Activity",
    "noActivity": "No location activity found",
    "activity": "Activity"
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants