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

Make translations for SAS emoji available in-tree #2728

Merged
merged 19 commits into from
Aug 12, 2020
Merged

Conversation

turt2live
Copy link
Member

@turt2live turt2live commented Aug 12, 2020

Fixes #2070

It's probably best to review this as a diff rather than as commits, due to this branch being used for experimentation. See included documentation for changes.

Client developers

The data-definitions/sas-emoji.json file will have a new property: translated_descriptions. This is a map of language to translated description. For example (not accurate):

{
    "number": 3,
    "emoji": "🐎",
    "description": "Horse",
    "unicode": "U+1F40E",
    "translated_descriptions": {
        "fr_FR": "Cheval"
    }
}

There's also a bunch of raw i18n files in the data-definitions directory, if you prefer.

These files are intended to be updated somewhat regularly, with the bare minimum being at least once a release.

Copy link
Member

@uhoreg uhoreg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From a quick skim, looks reasonable other than a little nitpick

scripts/i18n.py Show resolved Hide resolved
@turt2live turt2live merged commit d37f7a2 into master Aug 12, 2020
@turt2live turt2live deleted the travis/sas-v1-i18n branch August 12, 2020 20:04
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.

We should store translations for SAS emoji in-tree
2 participants