From 7d07f752eb4e6606c83cba6d2bf84369b6fab32f Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 9 Dec 2022 11:03:30 -0300 Subject: new string added to i18n --- packages/demobank-ui/src/context/translation.ts | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'packages/demobank-ui/src/context/translation.ts') diff --git a/packages/demobank-ui/src/context/translation.ts b/packages/demobank-ui/src/context/translation.ts index 12e4eda2b..4d24d3f5a 100644 --- a/packages/demobank-ui/src/context/translation.ts +++ b/packages/demobank-ui/src/context/translation.ts @@ -14,36 +14,30 @@ GNU Taler; see the file COPYING. If not, see */ -/** - * - * @author Sebastian Javier Marchano (sebasjm) - */ - import { i18n, setupI18n } from "@gnu-taler/taler-util"; import { ComponentChildren, createContext, h, VNode } from "preact"; import { useContext, useEffect } from "preact/hooks"; import { hooks } from "@gnu-taler/web-util/lib/index.browser"; import { strings } from "../i18n/strings.js"; + +export type InternationalizationAPI = typeof i18n + interface Type { lang: string; supportedLang: { [id in keyof typeof supportedLang]: string }; changeLanguage: (l: string) => void; - i18n: typeof i18n; + i18n: InternationalizationAPI; isSaved: boolean; } const supportedLang = { - es: "Español [es]", - ja: "日本語 [ja]", + es: "Espanol [es]", en: "English [en]", - fr: "Français [fr]", + fr: "Francais [fr]", de: "Deutsch [de]", sv: "Svenska [sv]", - it: "Italiano [it]", - // ko: "한국어 [ko]", - // ru: "Ру́сский язы́к [ru]", - tr: "Türk [tr]", + it: "Italiane [it]", navigator: "Defined by navigator", }; -- cgit v1.2.3