Translation components API.

See the Weblate's Web API documentation for detailed description of the API.

GET /api/translations/the-forge/common/fr/?format=api
HTTP 200 OK
Allow: GET, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "language": {
        "id": 197,
        "code": "fr",
        "name": "French",
        "plural": {
            "id": 197,
            "source": 0,
            "number": 2,
            "formula": "n > 1",
            "type": 1
        },
        "aliases": [
            "fra_fr",
            "fra",
            "fre"
        ],
        "direction": "ltr",
        "population": 278611506,
        "web_url": "https://weblate.foundryvtt-hub.com/languages/fr/",
        "url": "https://weblate.foundryvtt-hub.com/api/languages/fr/?format=api",
        "statistics_url": "https://weblate.foundryvtt-hub.com/api/languages/fr/statistics/?format=api"
    },
    "component": {
        "name": "Common",
        "slug": "common",
        "id": 151,
        "source_language": {
            "id": 147,
            "code": "en",
            "name": "English",
            "plural": {
                "id": 147,
                "source": 0,
                "number": 2,
                "formula": "n != 1",
                "type": 1
            },
            "aliases": [
                "en_en",
                "base",
                "source",
                "enp",
                "eng"
            ],
            "direction": "ltr",
            "population": 1636485517,
            "web_url": "https://weblate.foundryvtt-hub.com/languages/en/",
            "url": "https://weblate.foundryvtt-hub.com/api/languages/en/?format=api",
            "statistics_url": "https://weblate.foundryvtt-hub.com/api/languages/en/statistics/?format=api"
        },
        "project": {
            "name": "The Forge",
            "slug": "the-forge",
            "id": 68,
            "web": "https://forge-vtt.com/",
            "web_url": "https://weblate.foundryvtt-hub.com/projects/the-forge/",
            "url": "https://weblate.foundryvtt-hub.com/api/projects/the-forge/?format=api",
            "components_list_url": "https://weblate.foundryvtt-hub.com/api/projects/the-forge/components/?format=api",
            "repository_url": "https://weblate.foundryvtt-hub.com/api/projects/the-forge/repository/?format=api",
            "statistics_url": "https://weblate.foundryvtt-hub.com/api/projects/the-forge/statistics/?format=api",
            "categories_url": "https://weblate.foundryvtt-hub.com/api/projects/the-forge/categories/?format=api",
            "changes_list_url": "https://weblate.foundryvtt-hub.com/api/projects/the-forge/changes/?format=api",
            "languages_url": "https://weblate.foundryvtt-hub.com/api/projects/the-forge/languages/?format=api",
            "labels_url": "https://weblate.foundryvtt-hub.com/api/projects/the-forge/labels/?format=api",
            "credits_url": "https://weblate.foundryvtt-hub.com/api/projects/the-forge/credits/?format=api",
            "translation_review": false,
            "source_review": false,
            "set_language_team": true,
            "instructions": "## Fight Goblins, not Servers™\r\nThank you for contributing to The Forge's translation effort!\r\n\r\nThe Forge uses a combination of keys and `gettext`-like strings as translation keys.  \r\nBecause we use different frameworks from Foundry VTT, the strings in this project may appear unusual. Please read through the instructions and examples given here below before starting your translations.  \r\nYou can also contact us on our [Discord](https://forge-vtt.com/discord) or via `[email protected]` if you have any questions.  \r\n \r\n# Available Languages\r\nBecause of the number of strings involved, we will only be translating into specific languages at this time.  \r\nCurrently, these are English, French, Japanese, Spanish, and German.\r\nIf you'd like your language to be supported, please give us a shout in the `#feature-suggestions` channel on our [Discord](https://forge-vtt.com/discord).  \r\n\r\n# Language Switching\r\nIt is possible to view [The Forge's site](https://forge-vtt.com) in your own language, to see what a string looks like in its natural habitat.  \r\nTo do so, go to the [My Account](https://forge-vtt.com/account) page and select a language from the dropdown.  \r\nYou can also use the profile dropdown menu on the top right when logged in.  \r\nIf you're logged out, the language selection dropdown will appear directly on the top right of the navigation bar, next to the login button.  \r\n\r\n# Interpolation\r\n`{{` and `{{-` are interpolation prefixes, and `}}` is an interpolation suffix.  \r\nWhere you encounter these interpolation markers, treat the prefix and the suffix, and everything between them, as a word that should not be translated.  \r\nMake sure to keep the same prefix as the source string.  \r\n*For example*:  \r\n`\"The goblin ate my {{homework}}.\"` -> `\"Le gobelin a mangé mon {{homework}}.\"`  \r\n`\"The goblin ate my {{- homework}}.\"` -> `\"Le gobelin a mangé mon {{- homework}}.\"`  \r\n\r\n# Component Interpolation\r\n`{` and `}` are component interpolation markers. They have the same rules as regular interpolation markers and can be a word or a number:`{book}`, `{package}`, or `{0}`, `{1}`, `{2}`, etc.  \r\nNumbers indicate that a numbered component will be inserted there. Treat them the same way you would treat regular interpolation markers.  \r\n*For example*:  \r\n`\"The {0} ate my {1}.\"` -> `\"Le {0} a mangé mon {1}.\"`  \r\n`\"The {creature} ate my {item}.\"` -> `\"Le {creature} a mangé mon {item}.\"`  \r\n\r\n# Context\r\nSometimes it is useful to have different forms of the same string. In such cases, a specific `_context` will be added after an underscore at the end of a key. When you see this, use the context to inform your translation.\r\n\r\n# Plurals\r\nPlurals are like a special context, where the context specifies an amount. For some languages, simply having a singular`_one` and plural `_other`translation is sufficient, but other options like `_many`, `_few`, `_zero` and more are possible.  \r\nSome languages may have more complicated plural forms than English. If a string doesn't translate well into one of the keys available, please let us know by commenting on that string.  \r\n*For example*:  \r\n`\"GOBLIN_one\": \"{{count}} goblin\"` -> `\"GOBLIN_one\": \"{{count}} gobelin\"`  \r\n`\"GOBLIN_other\": \"{{count}} goblins\"` -> `\"GOBLIN_other\": \"{{count}} gobelins\"`  \r\n`\"GOBLIN_many\": \"a lot of goblins\"` -> `\"GOBLIN_many\": \"beaucoup de gobelins\"`  \r\n\r\n# Nesting\r\nThis is rare, but sometimes we reference one string from inside of a different one. This can be particularly helpful when combined with plurals.  \r\n`$t(` and `)`are the nesting prefix and suffix. If you encounter them, treat the prefix and the suffix, and everything between them (including other markers), as a word that should not be translated.  \r\n*For example*:  \r\n`\"There, in the distance! I see $t(GOBLIN, {\\\"count\\\": {{hordeSize}} })!\"` -> `Là, au loin ! Je vois $t(GOBLIN, {\\\"count\\\": {{hordeSize}} }) !`  \r\n\r\n# Consistency\r\nPlease maintain consistency with the source language, English, as much as possible, and reference the accompanying glossary information to ensure consistency between components.",
            "enable_hooks": true,
            "language_aliases": "",
            "enforced_2fa": false
        },
        "vcs": "github",
        "repo": "https://github.com/ForgeVTT/forge-translations.git",
        "git_export": "https://weblate.foundryvtt-hub.com/git/the-forge/common/",
        "branch": "main",
        "push_branch": "",
        "filemask": "locales/*/common.json",
        "screenshot_filemask": "",
        "template": "locales/en/common.json",
        "edit_template": true,
        "intermediate": "",
        "new_base": "",
        "file_format": "i18next",
        "license": "MIT",
        "license_url": "https://spdx.org/licenses/MIT.html",
        "agreement": "",
        "web_url": "https://weblate.foundryvtt-hub.com/projects/the-forge/common/",
        "url": "https://weblate.foundryvtt-hub.com/api/components/the-forge/common/?format=api",
        "repository_url": "https://weblate.foundryvtt-hub.com/api/components/the-forge/common/repository/?format=api",
        "translations_url": "https://weblate.foundryvtt-hub.com/api/components/the-forge/common/translations/?format=api",
        "statistics_url": "https://weblate.foundryvtt-hub.com/api/components/the-forge/common/statistics/?format=api",
        "lock_url": "https://weblate.foundryvtt-hub.com/api/components/the-forge/common/lock/?format=api",
        "links_url": "https://weblate.foundryvtt-hub.com/api/components/the-forge/common/links/?format=api",
        "changes_list_url": "https://weblate.foundryvtt-hub.com/api/components/the-forge/common/changes/?format=api",
        "task_url": null,
        "credits_url": "https://weblate.foundryvtt-hub.com/api/components/the-forge/common/credits/?format=api",
        "new_lang": "url",
        "language_code_style": "",
        "push": "",
        "check_flags": "",
        "priority": 100,
        "enforced_checks": [],
        "restricted": false,
        "repoweb": "",
        "report_source_bugs": "",
        "merge_style": "rebase",
        "commit_message": "Translated using Weblate ({{ language_name }})\r\n\r\nCurrently translated at {{ stats.translated_percent }}% ({{ stats.translated }} of {{ stats.all }} strings)\r\n\r\nTranslation: {{ project_name }}/{{ component_name }}\r\nTranslate-URL: {{ url }}",
        "add_message": "Added translation using Weblate ({{ language_name }})",
        "delete_message": "Deleted translation using Weblate ({{ language_name }})",
        "merge_message": "Merge branch '{{ component_remote_branch }}' into Weblate.",
        "addon_message": "Update translation files\r\n\r\nUpdated by \"{{ addon_name }}\" hook in Weblate.\r\n\r\nTranslation: {{ project_name }}/{{ component_name }}\r\nTranslate-URL: {{ url }}",
        "pull_message": "Translations update from {{ site_title }}\r\n\r\nTranslations update from [{{ site_title }}]({{ site_url }}) for [{{ project_name }}/{{ component_name }}]({{url}}).\r\n\r\n{% if component_linked_childs %}\r\nIt also includes following components:\r\n{% for linked in component_linked_childs %}\r\n* [{{ linked.project_name }}/{{ linked.name }}]({{ linked.url }})\r\n{% endfor %}\r\n{% endif %}\r\n\r\nCurrent translation status:\r\n\r\n![Weblate translation status]({{widget_url}})",
        "allow_translation_propagation": true,
        "manage_units": true,
        "enable_suggestions": true,
        "suggestion_voting": false,
        "suggestion_autoaccept": 0,
        "push_on_commit": true,
        "commit_pending_age": 24,
        "auto_lock_error": true,
        "language_regex": "^[^.]+$",
        "variant_regex": "",
        "addons": [
            "https://weblate.foundryvtt-hub.com/api/addons/148/?format=api"
        ],
        "is_glossary": false,
        "glossary_color": "silver",
        "category": null,
        "linked_component": null
    },
    "language_code": "fr",
    "id": 793,
    "filename": "locales/fr/common.json",
    "revision": "1666ce2c0924d68f5c779d57f1cbce83fb63464a,0a01009041f5e80b257cadadb01066ad0518dd69",
    "web_url": "https://weblate.foundryvtt-hub.com/projects/the-forge/common/fr/",
    "share_url": "https://weblate.foundryvtt-hub.com/engage/the-forge/-/fr/",
    "translate_url": "https://weblate.foundryvtt-hub.com/translate/the-forge/common/fr/",
    "url": "https://weblate.foundryvtt-hub.com/api/translations/the-forge/common/fr/?format=api",
    "is_template": false,
    "is_source": false,
    "total": 380,
    "total_words": 759,
    "translated": 263,
    "translated_words": 607,
    "translated_percent": 69.2,
    "fuzzy": 0,
    "fuzzy_words": 0,
    "fuzzy_percent": 0.0,
    "failing_checks": 32,
    "failing_checks_words": 152,
    "failing_checks_percent": 8.4,
    "have_suggestion": 10,
    "have_comment": 0,
    "last_change": "2025-07-23T14:16:19.009053Z",
    "last_author": null,
    "repository_url": "https://weblate.foundryvtt-hub.com/api/translations/the-forge/common/fr/repository/?format=api",
    "file_url": "https://weblate.foundryvtt-hub.com/api/translations/the-forge/common/fr/file/?format=api",
    "statistics_url": "https://weblate.foundryvtt-hub.com/api/translations/the-forge/common/fr/statistics/?format=api",
    "changes_list_url": "https://weblate.foundryvtt-hub.com/api/translations/the-forge/common/fr/changes/?format=api",
    "units_list_url": "https://weblate.foundryvtt-hub.com/api/translations/the-forge/common/fr/units/?format=api"
}