-
Notifications
You must be signed in to change notification settings - Fork 31
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
issue #218: add russian translations #245
base: master
Are you sure you want to change the base?
issue #218: add russian translations #245
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking this up!!
I made one tiny comment, and then we also have moved away from using flags, so there's no need to add the lang-rus.png
... I know the LANGUAGE_TRANSLATION.md` still says to add a flag image so if you wanted you could also remove that step from that file :)
da54a69
to
9a7935d
Compare
@amaxama thanks! I removed the image file and the image references in the new language instructions. Let me know if there were any other issues with the PR I missed |
docs/LANGUAGE_TRANSLATION.md
Outdated
@@ -145,7 +131,8 @@ constructor() { | |||
orm, | |||
oji, | |||
dak, | |||
vie | |||
vie, | |||
ru |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we've mostly been using three-letter codes for languages, could change this to rus
or another three-letter code?
9a7935d
to
862c56b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for following up on this @lizzyaustad ! I added a couple comments for things I didn't catch the first time around.
"moment_d": "день", | ||
"moment_M": "месец", | ||
"moment_y": "год" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've had a few more values added to the translation spreadsheet, would you mind adding those here?
docs/LANGUAGE_TRANSLATION.md
Outdated
#### Moment.js | ||
|
||
We use [`moment.js`](https://momentjs.com/) to display text based on time computations ("an hour ago", "a few days ago", "in 3 days"). Some languages are already translated and supported by default. For others, we have created a translation file that will work with `moment.js` which can be found under [`src/locale`](https://github.com/Twin-Cities-Mutual-Aid/twin-cities-aid-distribution-locations/tree/master/src/locale). | ||
|
||
If the language is already supported by `moment.js`, the `locale` value in the `XXX.json` file should match the one that `moment.js` uses. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you go over these steps to check whether moment.js supports russian or not?
docs/LANGUAGE_TRANSLATION.md
Outdated
@@ -154,8 +139,6 @@ constructor() { | |||
#### Add language checklist | |||
|
|||
- [ ] Create a new translation file (`src/i18n/XXX.json`) | |||
- [ ] Add a new flag image (`public/images/lang-XXX.png`) | |||
- [ ] `locale` should match existing `moment.js` translation or new `moment.js` locale created (`src/locale/XXX.js`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason this step for the locale is being removed?
@amaxama it looks like my previous comment was removed, but I had mentioned that the moment.js translation did exist and was |
@lizzyaustad I don't think I ever saw your previous comments. Oh sorry, I was just saying to use 3 letters when naming the json file since that's what was in the language_translation file, not necessarily for the moment locale. It doesn't really matter that much about the file name, I was just thinking about consistency. Sorry if I was unclear before! But I think the moment stuff is still relevant. |
862c56b
to
a1e2f46
Compare
What
Add support for Russian translations
Why
Ticket #218
Ensure the following interactions work as expected. Please test using a mobile form factor.
Check the app in the following web browsers: