diff --git a/frontend/docs/development/i18n.md b/frontend/docs/development/i18n.md deleted file mode 100644 index 0e637394b..000000000 --- a/frontend/docs/development/i18n.md +++ /dev/null @@ -1 +0,0 @@ -TODO: Add i18n development docs diff --git a/frontend/src/i18n/README.md b/frontend/src/i18n/README.md index 3d23d51ac..7ad7968df 100644 --- a/frontend/src/i18n/README.md +++ b/frontend/src/i18n/README.md @@ -1,5 +1,22 @@ # i18n Internationalization / Localization -We try and keep all the i18n related things in here. +Nebraska frontend uses [i18next](https://www.i18next.com/) for internationalization. Translation files are organized by namespace in `locales/en/` (`common.json`, `applications.json`, `groups.json`, etc.). -See the [i18n docs](../../docs/development/i18n.md) for full details. +## Using Translations + +```typescript +import { useTranslation } from 'react-i18next'; + +function MyComponent() { + const { t } = useTranslation(); + return