forked from WeblateOrg/weblate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes WeblateOrg#8802
- Loading branch information
Showing
4 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
.. _formatjs: | ||
|
||
Format.JS JSON file | ||
------------------- | ||
|
||
.. versionadded:: 5.4 | ||
|
||
File format used when translating Format.JS and React-Intl applications. | ||
|
||
.. seealso:: | ||
|
||
:doc:`tt:formats/json`, | ||
`Format.JS Message Extraction <https://formatjs.io/docs/getting-started/message-extraction>`_ | ||
|
||
Example file: | ||
|
||
.. code-block:: json | ||
{ | ||
{ | ||
"hak27d": { | ||
"defaultMessage": "Control Panel", | ||
"description": "title of control panel section" | ||
}, | ||
"haqsd": { | ||
"defaultMessage": "Delete user {name}", | ||
"description": "delete button" | ||
}, | ||
"19hjs": { | ||
"defaultMessage": "New Password", | ||
"description": "placeholder text" | ||
}, | ||
"explicit-id": { | ||
"defaultMessage": "Confirm Password", | ||
"description": "placeholder text" | ||
} | ||
} | ||
Weblate configuration | ||
+++++++++++++++++++++ | ||
+-------------------------------------------------------------------+ | ||
| Typical Weblate :ref:`component` | | ||
+================================+==================================+ | ||
| File mask | ``src/lang/*.json`` | | ||
+--------------------------------+----------------------------------+ | ||
| Monolingual base language file | ``src/extracted/en.json`` | | ||
+--------------------------------+----------------------------------+ | ||
| Template for new translations | `Empty` | | ||
+--------------------------------+----------------------------------+ | ||
| File format | `Format.JS JSON file` | | ||
+--------------------------------+----------------------------------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters