react-intl spike #216
No reviewers
Labels
No Label
1000k
100k
10k
200k
20k
500k
50k
5k
75k
backend
blocked:design
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
P1
P2
P3
question
scope:intl
scope:nip
scope:query_tracing
scope:ux
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Kieran/snort#216
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "react-intl-spike"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This possibly resolves https://github.com/v0l/snort/issues/127.
Not sure what languages you want to support. I started with just English and Spanish.
The locale is being set by whatever locale the user has set in their browser. You could also maybe let the user set the locale in their user settings or with a language selector on the landing page.
English
Spanish
@ -0,0 +5,4 @@
Login: "Login",
});
export default addIdAndDefaultMessageToMessages(messages, 'Pages');
This is an example boilerplate file where default messages are defined. The values are extracted into one JSON file per each locale that is supported using the
yarn generate-messages
command.These boilerplate files are fairly simple, so I think it's okay to leave it them as JS. I think it would require more dependencies to get it to work with TS.
yo Sam thanks for starting this effort ❤️
Starting with those is fine, once the project is ready for getting translations we'll probably publish it in Transifex to get translation contributions.
Like this idea, i think this is a good default (system locale) but we should allow user to override that in the future, similar to theme selection.
Awesome, we really need to get Chinese and Japanese translations up first as those are the most popular