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

improve message format. eliminated '+' operator for embedding variables #365

Merged
merged 2 commits into from
Apr 23, 2020

Conversation

HirokazuNishi
Copy link
Contributor

When I was proceeding translation for this extension, I found many JS messages where hard to translate. Using '+' operator for connecting text is easy, but this implementation way isn't better for translating these messages into other languages like Japanese. Then I replaced them into using 'replace' method and '%n' placeholder. As you know this message format is same as Magento core codes. Translators can move all placeholders into suitable place of the sentence.

@vvuksan vvuksan merged commit 98b01b3 into fastly:master Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants