-
Notifications
You must be signed in to change notification settings - Fork 58
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
Automate gutenberg translations followup #1589
Conversation
15a5d0b
to
dc5344f
Compare
f799392
to
afbf2a9
Compare
|
||
const indent = ' '; | ||
|
||
/** | ||
* Encode a raw string into an Android-compatible value |
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.
Should we also encode quotes and double-quotes?
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.
Yep, JSON.stringify
is going to take care of that
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.
Single quotes don't need to be encoded though as they'll be contained in a double quote string. See https://github.com/wordpress-mobile/gutenberg-mobile/pull/1589/files#diff-8a38584e71e09430592cd316ae4d6851R82
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.
LGTM!
This PR aims to improve our i18n flow. There are 3 main improvements we need to take care of:
<string-array>
tags for plurals instead of<plurals>
Testing Instructions
yarn genstrings
git diff
)Update release notes:
RELEASE-NOTES.txt
.