From 23f4ddb4fd437a1d648fcc83b8cd80ce97b60962 Mon Sep 17 00:00:00 2001 From: Marcel Date: Sat, 10 Jun 2017 12:27:26 +0200 Subject: [PATCH] Update import and directory path ...in the Translations dev guide --- docs/translating-dev.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/translating-dev.md b/docs/translating-dev.md index 80d4b64a3a..55ba34be10 100644 --- a/docs/translating-dev.md +++ b/docs/translating-dev.md @@ -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.