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

normalize convert emoji characters into unicode #291

Closed
neumayr opened this issue Jul 2, 2018 · 2 comments
Closed

normalize convert emoji characters into unicode #291

neumayr opened this issue Jul 2, 2018 · 2 comments

Comments

@neumayr
Copy link
Contributor

neumayr commented Jul 2, 2018

Hey! 🙌

I've spotted that i18n-tasks normalize converts emoji characters into unicode which makes them much harder to read and change afterward. IMHO, this should be necessary because yaml is capable to understand plain emoji chars. What do you think about this one?

Before
lang:
  de-de: 🇩🇪 German
  en-uk: 🇺🇸 English
  header: 🌐 Select Language
After i18n-tasks normalize
lang:
  de-de: "\U0001F1E9\U0001F1EA German"
  en-uk: "\U0001F1FA\U0001F1F8 English"
  header: "\U0001F310 Select Language"

Converter tool

@dgilperez
Copy link

Fully agree with this one.

@glebm
Copy link
Owner

glebm commented Aug 20, 2018

i18n-tasks delegates YAML dumping to the standard library yaml:

# @return [String]
def dump(tree, options)
tree.to_yaml(options || {})
end

Please raise the issue with the yaml library instead.
The standard library YAML repo is: https://github.com/ruby/psych

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

No branches or pull requests

3 participants