MM-3943 : Migrate to go-i18n 2.X#21327
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.
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 |
Behavior has changed with nicksnyder#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)
|
Thanks for reporting this issue and for the community discussion around it. After multiple years of inactivity, we're closing this to help keep our issue tracker focused on active work. If this is still relevant, please feel free to open a new issue with updated context and we'll be happy to take another look. |
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