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

Make Translation Languages Configurable #10

Open
sshaw opened this issue May 8, 2020 · 0 comments
Open

Make Translation Languages Configurable #10

sshaw opened this issue May 8, 2020 · 0 comments

Comments

@sshaw
Copy link
Contributor

sshaw commented May 8, 2020

Currently the list of translations is hardcoded. A user should be able to configure the languages they want translated; both source and destination languages, via the UI.

Currently we're using the iso gem to validate but I don't think validation makes sense since there is no true set of valid language codes. For example, ru-US is not used but valid.

As for what spec to use, I don't know if it's important, or at least it should not be exposed via the UI. Maybe it just provides Language and an option Country and we use whatever format we want internally.

If we do expose the code and then see it necessary to use language variants, e.g., gsw-u-sd-chzh for Zürich German, this can just be confusing for a user.

If there's a need for the ISO gem, we should look into how it compares to this: https://github.com/xwmx/iso-639

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

1 participant