Skip to content

Commit

Permalink
Update translating-dev.md
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Sep 7, 2023
1 parent f93a7c0 commit 50afd46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/translating-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,13 @@ We are aiming for a set of common strings to be shared then some more localised

1. Ensure the string doesn't already exist in a related project, such as https://localazy.com/p/element
2. Keys for common strings, i.e. strings that can be used at multiple places must start by `action_` if this is a verb, or `common_` if not
3. Keys for common accessibility strings must start by `a11y_`. Example:` a11y_hide_password`
3. Keys for common accessibility strings must start by `a11y_`. Example: `a11y_hide_password`
4. Otherwise, try to group keys logically and nest where appropriate, such as `keyboard_` for strings relating to keyboard shortcuts.
5. Ensure your translation keys do not include `.` or `|` or ` `. Try to balance string length against descriptiveness.

## matrix-react-sdk is still undergoing migration to translation keys
If you are fortunate enough to be modifying not yet migrated strings please treat them as a new string using instructions below.

## Adding new strings

1. Check if the import `import { _t } from 'matrix-react-sdk/src/languageHandler';` is present. If not add it to the other import statements. Also import `_td` if needed.
Expand Down

0 comments on commit 50afd46

Please sign in to comment.