Skip to content

Commit

Permalink
Make links paths relative.
Browse files Browse the repository at this point in the history
  • Loading branch information
kujtimprenkuSQA committed Oct 6, 2023
1 parent 7b8fd05 commit c073cca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 [here](https://github.com/near/wallet-selector/tree/main/packages/core/src/lib/locale)
- Language files are located in locale folder [here](../../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 [here](https://github.com/near/wallet-selector/tree/main/packages/core/src/lib/locale)
- Language files are located in locale folder [here](../../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 [translate.ts](https://github.com/near/wallet-selector/tree/main/packages/core/src/lib/translate/translate.ts) file.
- When new language is introduced it must be added to [translate.ts](../../src/lib/translate/translate.ts) file.

```ts
import en from "../locale/en.json";
Expand Down

0 comments on commit c073cca

Please sign in to comment.