Skip to content

Commit

Permalink
Add and fix links in multilanguage-support docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
kujtimprenkuSQA committed Oct 6, 2023
1 parent a01a12e commit 7b8fd05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/docs/guides/multilanguage-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

## How to use

- Language files are located in locale folder in `packages\core\src\lib\locale`
- Language files are located in locale folder [here](https://github.com/near/wallet-selector/tree/main/packages/core/src/lib/locale)
- In order for text to be translated `translate` function should be used
as in example below
- Can be extended when needed following `packageName.section.translationKey`structure
Expand Down Expand Up @@ -55,7 +55,7 @@

## Adding new language

- Language files are located in locale folder in `packages\core\src\lib\locale`
- Language files are located in locale folder [here](https://github.com/near/wallet-selector/tree/main/packages/core/src/lib/locale)
- Files are named after ISO 639-1: two-letter language code
- Keys are named in camelCase as the beginning of the string always in English, with the following pattern used :

Expand All @@ -69,7 +69,7 @@
}
```

- When new language is introduced it must be added to `packages\core\src\lib\translate\translate.ts`
- When new language is introduced it must be added to [translate.ts](https://github.com/near/wallet-selector/tree/main/packages/core/src/lib/translate/translate.ts) file.

```ts
import en from "../locale/en.json";
Expand All @@ -92,7 +92,7 @@
```

- Supported language should be added to **Supported
Languages** [list](https://github.com/near/wallet-selector/blob/dev/packages/core/docs/guides/multilanguage-support.md#supported-languages) and type list
Languages** [list](#supported-languages) and type list
.

- Pull request title should be named as **"Add support for `LanguageName` language"**.
Expand Down

0 comments on commit 7b8fd05

Please sign in to comment.