Skip to content

JSON template: provisions for definitions in other languages #109

@Ntsekees

Description

@Ntsekees

Is the current dictionary.json meant to be able to harbor definitions and keywords in languages other than English? If so, how should these be added?

I can imagine two options (taking the Spanish language as an example):

  1. Additional top-level fields spanish, spanish-gloss, spanish-short, spanish-keywords would be added.

  2. Alternatively, the current field english is removed; instead, a new field, a list of sub-dictionaries, named translations, is added; gloss, short, keywords are moved into it and a new field language is also added.
    I.e.

    "english": "▯ is something.",
    "gloss": "something",
    "short": "",
    "keywords": [],

would turn into:

    translations: [
        {
            "language": "english":
            "definition": "▯ is something.",
            "gloss": "something",
            "short": "",
            "keywords": []
        }
    ]

I think the second option is conceptually more elegant and tidy, although it takes some more spaces in the JSON than the first option.
The second option would clearly separate what fields are dependent on a particular target language from the fields that are inherent to the Toaq word, irrespectively of any translation of it (e.g. type, frame, distribution…).

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions