-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
MM-3943 : Migrate to go-i18n 2.X #21327
base: master
Are you sure you want to change the base?
Conversation
Re-assigning to @laneycs's team as per AORs |
51bffd8
to
1dd3414
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
It's not stale on my side. I'm just waiting for a review by @gabrieljackson and @laneycs |
Hi @isacikgoz, is there someone else than @gabrieljackson that can review this PR ? It seems to have fallen off its radar |
This comment was marked as outdated.
This comment was marked as outdated.
Behavior has changed with #189. Before that, an empty default message returned nil and an error, now it returns "" without error. This has been detected by mattermost test suit in mattermost/mattermost#21327 which tries to switch all code base to go-i18n v2, see [related discussion](https://github.com/mattermost/mattermost/pull/21327/files#r1365634307)
Signed-off-by: Nicolas Le Cam <niko.lecam@gmail.com>
Signed-off-by: Nicolas Le Cam <niko.lecam@gmail.com>
Signed-off-by: Nicolas Le Cam <niko.lecam@gmail.com>
Signed-off-by: Nicolas Le Cam <niko.lecam@gmail.com>
Signed-off-by: Nicolas Le Cam <niko.lecam@gmail.com>
Signed-off-by: Nicolas Le Cam <niko.lecam@gmail.com>
Signed-off-by: Nicolas Le Cam <niko.lecam@gmail.com>
Signed-off-by: Nicolas Le Cam <niko.lecam@gmail.com>
… to cleanup empty plural forms Signed-off-by: Nicolas Le Cam <niko.lecam@gmail.com>
Signed-off-by: Nicolas Le Cam <niko.lecam@gmail.com>
Signed-off-by: Nicolas Le Cam <niko.lecam@gmail.com>
Signed-off-by: Nicolas Le Cam <niko.lecam@gmail.com>
Signed-off-by: Nicolas Le Cam <niko.lecam@gmail.com>
Signed-off-by: Nicolas Le Cam <niko.lecam@gmail.com>
4b552f0
to
4d35b40
Compare
Signed-off-by: Nicolas Le Cam <niko.lecam@gmail.com>
I've rebased the PR and I'm willing to maintain it if it's still valuable to you |
Summary
Migrate to go-i18n 2.X to allow context-specific translations
Includes modifications to mmgotool (available in mattermost/mattermost-utilities#68 before the switch to monorepo)
Previously the tool seemed to ignore space only (i.e. " ") translations but that didn't seem right so I've changed the behavior. I've also updated the json format to use 2 space indentation to reflect current json format used in mattermost-server
Ticket Link
Fixes #5267
Fixes https://mattermost.atlassian.net/browse/MM-3943
Release Note