mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 10:45:51 +03:00
Update import and directory path
...in the Translations dev guide
This commit is contained in:
parent
00ca069873
commit
71a0ced8a8
1 changed files with 2 additions and 2 deletions
|
@ -8,9 +8,9 @@
|
|||
|
||||
## Adding new strings
|
||||
|
||||
1. Check if the import ``import _t from 'counterpart-riot'`` is present. If not add it to the other import statements.
|
||||
1. Check if the import ``import { _t } from 'matrix-react-sdk/lib/languageHandler';`` is present. If not add it to the other import statements.
|
||||
2. Add ``_t()`` to your string. (Don't forget curly braces when you assign an expression to JSX attributes in the render method)
|
||||
3. Add the String to the ``en_EN.json`` file in ``src/i18n`` or if you are working in matrix-react-sdk you can find the json file in ``src/i18n/strings``
|
||||
3. Add the String to the ``en_EN.json`` file in ``src/i18n/strings`` (respect which repository you are on).
|
||||
|
||||
## Adding variables inside a string.
|
||||
|
||||
|
|
Loading…
Reference in a new issue