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

JSON format #20

Open
unhammer opened this issue Aug 26, 2022 · 0 comments
Open

JSON format #20

unhammer opened this issue Aug 26, 2022 · 0 comments

Comments

@unhammer
Copy link

unhammer commented Aug 26, 2022

Lots of people use more or less simple json formats for i18n. E.g. apertium-html-tools

{
    "@metadata": {
        "authors": [            "Juan Pablo Martínez Cortés"        ],
        "last-updated": "30/01/2016",
        "locale": [            "arg"        ],
        "completion": " 96% 106.82%",
        "missing": [        ]
    },
    "title": "Apertium | Una plataforma libre de traducción automatica",
    "tagline": "Plataforma de traducción automatica lliure/de codigo fuent ubierto"
}

or "professional" formats like https://www.i18next.com/misc/json-format

The typical format seems to be a simple object of {key:string-to-be-translated}. If transfuse could handle that simple format (ignoring the advanced i18next stuff, and skipping anything where value is not a string), we'd probably have support for most of the json-using i18n's.

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

1 participant