From a01ecf12935a624ac9bf6ba293b4aaf97f94ee84 Mon Sep 17 00:00:00 2001 From: MichaelDvP <59284019+MichaelDvP@users.noreply.github.com> Date: Tue, 15 Oct 2024 07:59:24 +0200 Subject: [PATCH] Update Adding-Languages.md --- docs/Adding-Languages.md | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/docs/Adding-Languages.md b/docs/Adding-Languages.md index 4a46c469..c4fac029 100644 --- a/docs/Adding-Languages.md +++ b/docs/Adding-Languages.md @@ -5,7 +5,7 @@ - Copy `interface/src/i18n/en/index.ts` to `interface/src/i18n/XY/index.ts` - Change in the first and last line `en` to your language and in the first lines `BaseTranslation` to `Translation` - Edit `interface/src/i18n/XY/index.ts` and replace the English texts by your language -- Edit `interface/src/components/layout/LayoutAuthMenu.tsx` and add the following: +- Edit `interface/src/components/layout/LanguageSelector.tsx` and add the following: ``` import { ReactComponent as XYflag } from 'i18n/XY.svg'; @@ -16,17 +16,6 @@ import { ReactComponent as XYflag } from 'i18n/XY.svg'; ``` -- Edit `interface/src/SignIn.tsx` and add a button: - -``` -import { ReactComponent as XYflag } from './i18n/XY.svg'; -... - -``` - - Navigate to the `interface` folder and type `npm run standalone` or `npm run typesafe-i18n` and test the WebUI ### How to add language XY to device entities