mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-04-29 13:44:44 +08:00
* initial implementation suggestion * basic supported features snippets generation * Add API identifiers, read-only strings and common extensions to features table * generate doc features snippet files * autogenerated snippets cleanup * changelog update * delete one file to test auto-update * replace SUPPORTS_FUZZY with file format additional_states flag * docs: Documentation snippets update * fix include statetement typo * fix incorrect monolingual attributes * minor styling change * docs: Documentation snippets update * exclude snippets from being treated as standalone documents * Set YAMLFormat as both mono/bilingual * docs: Documentation snippets update * fix duplicate format IDs * only use backwards quotes for literals --------- Co-authored-by: gersona <6675010+gersona@users.noreply.github.com> Co-authored-by: Michal Čihař <michal@weblate.org>
37 lines
1.7 KiB
ReStructuredText
37 lines
1.7 KiB
ReStructuredText
.. _gotext-json:
|
|
|
|
gotext JSON files
|
|
-----------------
|
|
|
|
.. index::
|
|
pair: gotext; file format
|
|
|
|
.. versionadded:: 4.15.1
|
|
|
|
gotext translations are monolingual, so it is recommended to specify a base file
|
|
with (what is most often the) English strings.
|
|
|
|
.. seealso::
|
|
|
|
* :doc:`tt:formats/json`
|
|
* `I18n in Go: Managing Translations <https://www.alexedwards.net/blog/i18n-managing-translations>`_
|
|
* :ref:`updating-target-files`
|
|
* :ref:`addon-weblate.json.customize`
|
|
* :ref:`addon-weblate.cleanup.generic`
|
|
|
|
.. include:: /snippets/format-features/gotext-features.rst
|
|
|
|
Weblate configuration
|
|
+++++++++++++++++++++
|
|
|
|
+--------------------------------+--------------------------------------------------------------+
|
|
| Typical Weblate :ref:`component` |
|
|
+================================+==============================================================+
|
|
| File mask | ``internal/translations/locales/*/messages.gotext.json`` |
|
|
+--------------------------------+--------------------------------------------------------------+
|
|
| Monolingual base language file | ``internal/translations/locales/en-GB/messages.gotext.json`` |
|
|
+--------------------------------+--------------------------------------------------------------+
|
|
| Template for new translations | `Empty` |
|
|
+--------------------------------+--------------------------------------------------------------+
|
|
| File format | `gotext JSON file` |
|
|
+--------------------------------+--------------------------------------------------------------+
|