Maintenance in progress
We're sorry, but this site is currently down for maintenance.
We're sorry, but this site is currently down for maintenance.
Ahoj světe!
Orangutan has five bananas.
Try Weblate at weblate.org!
Thank you for using Weblate.
``` #### Supported features | File extensions | `.htm`, `.html` | |------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------| | Linguality [ⓘ](https://docs.weblate.org/en/latest/formats.md#bimono) | Monolingual | | Supports plural [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-plurals) | `No` | | Supports descriptions [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-description) | `No` | | Supports explanation [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-explanation) | `No` | | Supports context [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-context) | `No` | | Supports location [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-location) | `No` | | Supports flags [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-flags) | `No` | | API identifier | `html` | | Supports read-only strings [ⓘ](https://docs.weblate.org/en/latest/formats.md#read-only-strings) | `No` | | Supports removing obsolete strings [ⓘ](https://docs.weblate.org/en/latest/formats.md#obsolete-strings) | `No` | | Check flags added by this format [ⓘ](https://docs.weblate.org/en/latest/admin/checks.md#custom-checks) | [Unsafe HTML](https://docs.weblate.org/en/latest/user/checks.md#check-safe-html), `strict-same` | ## Weblate configuration | | Typical Weblate [Component configuration](https://docs.weblate.org/en/latest/admin/projects.md#component) | |--------------------------------|----------------------------------------------------------------------------------------------------| | File mask | `path/*.html` | | Monolingual base language file | `path/en.html` | | Template for new translations | `path/en.html` | | File format | HTML file | | File format parameters | `html_merge_duplicates=True` | ## Handling duplicate strings By default, Weblate treats each occurrence of a string as a separate translation unit to provide line-based context. This can be problematic in HTML files, where moving elements changes the context and can lead to translation loss. To consolidate identical strings into a single translation unit, enable Deduplicate identical strings in the [File format parameters](https://docs.weblate.org/en/latest/admin/projects.md#component-file-format-params). #### NOTE Enabling this option disables line-based context for the merged units, ensuring that translations remain stable even if elements are moved within the document. # formats/i18next.md # i18next JSON files #### Versionchanged Changed in version 4.15.1: Support for v4 variant of this format was added. #### HINT In case you use plurals, it is recommended to use v4 as that aligned plural handling with CLDR. Older versions have different plural rules for some languages which are not correct. i18next is an internationalization framework written in and for JavaScript. Weblate supports its localization files with features such as plurals. i18next translations are monolingual, so it is recommended to specify a base file with (what is most often the) English strings. ## i18next JSON file v4 Choose this format if unsure. It stores plurals using standard CLDR suffixes. ## i18next JSON file v3 Use for legacy projects which are using numeric suffixes for plurals. #### NOTE The v2 and v1 variants are mostly compatible with v3, with exception of how plurals are handled. #### SEE ALSO * [JSON](https://docs.translatehouse.org/projects/translate-toolkit/en/latest/formats/json.html) * [https://www.i18next.com/](https://www.i18next.com/) * [i18next JSON Format](https://www.i18next.com/misc/json-format) * [Updating target-language files](https://docs.weblate.org/en/latest/devel/integration.md#updating-target-files) * [Customize JSON output](https://docs.weblate.org/en/latest/admin/addons.md#addon-weblate-json-customize) * [Cleanup translation files](https://docs.weblate.org/en/latest/admin/addons.md#addon-weblate-cleanup-generic) Example file: ```json { "hello": "Hello", "apple": "I have an apple", "apple_plural": "I have {{count}} apples", "apple_negative": "I have no apples" } ``` #### Supported features | File extensions | `.json` | |------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------| | Linguality [ⓘ](https://docs.weblate.org/en/latest/formats.md#bimono) | Both monolingual and bilingual | | Supports plural [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-plurals) | `Yes` | | Supports descriptions [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-description) | `No` | | Supports explanation [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-explanation) | `No` | | Supports context [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-context) | `No` | | Supports location [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-location) | `No` | | Supports flags [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-flags) | `No` | | API identifier | `i18nextv4` | | Supports read-only strings [ⓘ](https://docs.weblate.org/en/latest/formats.md#read-only-strings) | `No` | | Supports removing obsolete strings [ⓘ](https://docs.weblate.org/en/latest/formats.md#obsolete-strings) | `No` | | Check flags added by this format [ⓘ](https://docs.weblate.org/en/latest/admin/checks.md#custom-checks) | [i18next interpolation](https://docs.weblate.org/en/latest/user/checks.md#check-i18next-interpolation) | #### Supported features | File extensions | `.json` | |------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------| | Linguality [ⓘ](https://docs.weblate.org/en/latest/formats.md#bimono) | Both monolingual and bilingual | | Supports plural [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-plurals) | `Yes` | | Supports descriptions [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-description) | `No` | | Supports explanation [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-explanation) | `No` | | Supports context [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-context) | `No` | | Supports location [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-location) | `No` | | Supports flags [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-flags) | `No` | | API identifier | `i18next` | | Supports read-only strings [ⓘ](https://docs.weblate.org/en/latest/formats.md#read-only-strings) | `No` | | Supports removing obsolete strings [ⓘ](https://docs.weblate.org/en/latest/formats.md#obsolete-strings) | `No` | | Check flags added by this format [ⓘ](https://docs.weblate.org/en/latest/admin/checks.md#custom-checks) | [i18next interpolation](https://docs.weblate.org/en/latest/user/checks.md#check-i18next-interpolation) | ## Weblate configuration | | Typical Weblate [Component configuration](https://docs.weblate.org/en/latest/admin/projects.md#component) | |--------------------------------|----------------------------------------------------------------------------------------------------| | File mask | `langs/*.json` | | Monolingual base language file | `langs/en.json` | | Template for new translations | Empty | | File format | i18next JSON file v3 | # formats/idml.md # IDML Format #### Versionadded Added in version 4.1. #### NOTE Support for this format is under development. Some features might not yet be available and the behavior can change between releases. Feedback from testing is welcome. The translatable content is extracted from the Adobe InDesign Markup Language files and offered for the translation. #### Supported features | File extensions | `.idml`, `.idms` | |------------------------------------------------------------------------------------------------------|--------------------| | Linguality [ⓘ](https://docs.weblate.org/en/latest/formats.md#bimono) | Monolingual | | Supports plural [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-plurals) | `No` | | Supports descriptions [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-description) | `No` | | Supports explanation [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-explanation) | `No` | | Supports context [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-context) | `No` | | Supports location [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-location) | `No` | | Supports flags [ⓘ](https://docs.weblate.org/en/latest/formats.md#format-flags) | `No` | | API identifier | `idml` | | Supports read-only strings [ⓘ](https://docs.weblate.org/en/latest/formats.md#read-only-strings) | `No` | | Supports removing obsolete strings [ⓘ](https://docs.weblate.org/en/latest/formats.md#obsolete-strings) | `No` | | Check flags added by this format [ⓘ](https://docs.weblate.org/en/latest/admin/checks.md#custom-checks) | `strict-same` | ## Weblate configuration | | Typical Weblate [Component configuration](https://docs.weblate.org/en/latest/admin/projects.md#component) | |--------------------------------|----------------------------------------------------------------------------------------------------| | File mask | `path/*.idml` | | Monolingual base language file | `path/en.idml` | | Template for new translations | `path/en.idml` | | File format | IDML file | # formats/ini.md # INI translations #### Versionadded Added in version 4.1. INI file format for translations. Weblate currently supports several variants of JSON translations: * Monolingual INI files * [Joomla translations](https://docs.weblate.org/en/latest/formats/joomla.md#joomla) * [Inno Setup INI translations](https://docs.weblate.org/en/latest/formats/innosetup.md#islu) INI translations are usually used as monolingual translations. #### NOTE Weblate only extracts keys from sections within an INI file. In case your INI file lacks sections, you might want to use [Joomla translations](https://docs.weblate.org/en/latest/formats/joomla.md#joomla) or [Java properties](https://docs.weblate.org/en/latest/formats/java.md#javaprop) instead. #### SEE ALSO * [INI Files](https://docs.translatehouse.org/projects/translate-toolkit/en/latest/formats/ini.html) * [Java properties](https://docs.weblate.org/en/latest/formats/java.md#javaprop) * [Joomla translations](https://docs.weblate.org/en/latest/formats/joomla.md#joomla) * [Inno Setup INI translations](https://docs.weblate.org/en/latest/formats/innosetup.md#islu) Example file: ```ini [weblate] hello=Ahoj "světe"!\n orangutan=Orangutan má %d banán.\n try=Zkus Weblate naTranslate Toolkit