Chore: Align on 'internationalization' for feature name (#52585)

* rename internationalization docs

* Move localisation.tsx to internationalization/index.tsx
This commit is contained in:
Josh Hunt
2022-07-21 11:31:08 +01:00
committed by GitHub
parent 3fbec39952
commit 62a3f2ed32
7 changed files with 9 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
# Localisation
# Internationalization
Grafana uses the [LinguiJS](https://github.com/lingui/js-lingui) framework for managing translating phrases in the Grafana frontend.
@@ -59,7 +59,7 @@ For components used all over the site, use just two segments:
### Top-level provider
In [AppWrapper.tsx](/public/app/AppWrapper.tsx) the app is wrapped with `I18nProvider` from `public/app/core/localisation.tsx` where the Lingui instance is created with the user's preferred locale. This sets the appropriate context and allows any component from `@lingui/macro` to use the translations for the user's preferred locale.
In [AppWrapper.tsx](/public/app/AppWrapper.tsx) the app is wrapped with `I18nProvider` from `public/app/core/internationalization/index.tsx` where the Lingui instance is created with the user's preferred locale. This sets the appropriate context and allows any component from `@lingui/macro` to use the translations for the user's preferred locale.
### Message format