-
Notifications
You must be signed in to change notification settings - Fork 3
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
Police Oversight form: Identify translation strategy #1045
Comments
This is one library I have been looking at: https://www.i18next.com/overview/configuration-options It supports:
There are others we can use or implement our own ... |
the json files can be stored and edited on github (as we have talked about during the sprint review on Jan 24) |
Translated content: |
@easherma is going to move forward with this looking at Babel.js and the Janis strategy: Is this something we can implement in a week? If so, let's create issues and get on it. |
Comparison between react-i18next and react-intl. The latter is being used by Janis. I agree with @sergiogcx at first blush i18next seems more useful overall, but it also seems more geared for server side rendering. Also related and cool-looking: |
I'm fine with I was looking at https://lingui.js.org/tutorials/react.html which seems a lot easier to implement, but did not have the time to play with it yet. But I am totally fine with any framework of your choosing @easherma |
@sergiogcx has this branch up: cityofaustin/officer-complaint-form#28 |
I am leaning towards react-i18next. At first glance, it is more intuitive to me. I also like that it is more framework-agnostic. Either way I'm trying to get a sense of how much re-writing of our code and us-forms systems either would require. I think I'll just try both in seperate branches. @sergiogcx at first glance did anything stick out as easier to you in particular about lingui.js vs react-intl? They seemed very similar. |
Also relevant threads: usds/us-forms-system#170 <--- dependency of our forms |
@easherma Lingui has a CLI that helps manage locales, not sure if react-intl does too. Anyhow, I think you would know which to choose best. Not married to the idea of trying any other not already mentioned, |
This is tricky mainly because:
|
Outstanding question: Where is the 'best' place for this, architecture wise? Option 1: Results if it works: Option 2: Results |
We're going with @sergiogcx's branch to translate the forms after build for now. |
Requirements:
For now, translations can be hardcoded/edited directly in yaml, json, etc.
The text was updated successfully, but these errors were encountered: