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

Add support for custom localization schemes #1

Open
randytarampi opened this issue Oct 6, 2016 · 0 comments
Open

Add support for custom localization schemes #1

randytarampi opened this issue Oct 6, 2016 · 0 comments

Comments

@randytarampi
Copy link
Owner

Ideally we take some input definition (a schema) of what our localization objects look like so we don't have to massage localization files into strict, flat, key value string pair.

It'll allow us to support some structure like this:

{
    "Some simple key": "Some localizable value",
    "Some complex key": [{
        "value": "Some localizable value"
    }, {
        "value": "Some localizable value",
        "Some contextual descriptor": "Some contextual information"
    }, {
        "value": "Some localizable value",
        "Some contextual descriptor": "Some contextual information",
        "Some other contextual descriptor": "Some other contextual information"
    }]
}

And turn it into this:

{
    "Some simple key": "ʕつ•S•ʔつ",
    "Some complex key": [{
        "value": "ʕつ•S•ʔつ"
    }, {
        "value": "ʕつ•S•ʔつ",
        "Some contextual descriptor": "Some contextual information"
    }, {
        "value": "ʕつ•S•ʔつ",
        "Some contextual descriptor": "Some contextual information",
        "Some other contextual descriptor": "Some other contextual information"
    }]]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant