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

MM-3943 : Migrate to go-i18n 2.X #21327

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open

MM-3943 : Migrate to go-i18n 2.X #21327

wants to merge 20 commits into from

Conversation

KuSh
Copy link
Contributor

@KuSh KuSh commented Oct 10, 2022

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

Migrated to go-i18n 2.X

@mm-cloud-bot mm-cloud-bot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Oct 10, 2022
@mattermod
Copy link
Contributor

Hello @KuSh,

Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

@KuSh KuSh changed the title MM-3943: Migrate to go-i18n 2.X [MM-3943] Migrate to go-i18n 2.X Oct 10, 2022
@KuSh KuSh changed the title [MM-3943] Migrate to go-i18n 2.X MM-3943 : Migrate to go-i18n 2.X Oct 13, 2022
@esethna esethna requested review from laneycs and removed request for esethna October 18, 2022 19:55
@esethna
Copy link
Contributor

esethna commented Oct 18, 2022

Re-assigning to @laneycs's team as per AORs

@KuSh KuSh force-pushed the GH-5267 branch 2 times, most recently from 51bffd8 to 1dd3414 Compare November 1, 2022 14:51
@KuSh

This comment was marked as outdated.

@mattermod
Copy link
Contributor

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

@KuSh
Copy link
Contributor Author

KuSh commented Nov 22, 2022

This PR has been automatically labelled "stale" because it hasn't had recent activity. A core team member will check in on the status of the PR to help with questions. Thank you for your contribution!

It's not stale on my side. I'm just waiting for a review by @gabrieljackson and @laneycs

laneycs
laneycs previously approved these changes Dec 7, 2022
@KuSh
Copy link
Contributor Author

KuSh commented Dec 12, 2022

Hi @isacikgoz, is there someone else than @gabrieljackson that can review this PR ? It seems to have fallen off its radar

@KuSh

This comment was marked as outdated.

nicksnyder pushed a commit to nicksnyder/go-i18n that referenced this pull request Oct 23, 2023
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)
KuSh and others added 17 commits October 26, 2023 01:50
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>
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>
@hanzei hanzei added the 2: Dev Review Requires review by a developer label Nov 23, 2023
@Willyfrog Willyfrog removed their request for review September 19, 2024 09:52
@KuSh KuSh force-pushed the GH-5267 branch 2 times, most recently from 4b552f0 to 4d35b40 Compare October 6, 2024 22:33
Signed-off-by: Nicolas Le Cam <niko.lecam@gmail.com>
@KuSh
Copy link
Contributor Author

KuSh commented Oct 15, 2024

I've rebased the PR and I'm willing to maintain it if it's still valuable to you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2: Dev Review Requires review by a developer Contributor Hacktoberfest hacktoberfest-accepted Lifecycle/1:stale release-note Denotes a PR that will be considered when it comes time to generate release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for context-specific translations