InvokeAI/frontend/src/i18.d.ts
pejotr 4cc60669c1
[WebUI] Localize tooltips (#2136)
* [WebUI]: Localize tooltips

* fix: typo in seamCorrection translation

* [WebUI]: Localize tooltips

* fix: typo in seamCorrection translation

* Add Missing Language Placeholders for Tooltip Localization

* Fix UI displacement in RU localization for options

* Fix double options during merge.

* Fix tkinter lefover

Co-authored-by: blessedcoolant <54517381+blessedcoolant@users.noreply.github.com>
2022-12-29 21:19:57 +13:00

35 lines
1.1 KiB
TypeScript

import 'i18next';
// Import All Namespaces (for the default language only)
import common from '../public/locales/common/en.json';
import unifiedcanvas from '../public/locales/unifiedcanvas/en.json';
import options from '../public/locales/options/en.json';
import gallery from '../public/locales/gallery/en.json';
import toast from '../public/locales/toast/en.json';
import hotkeys from '../public/locales/hotkeys/en.json';
import settings from '../public/locales/settings/en.json';
import tooltip from '../public/locales/tooltip/en.json';
import modelmanager from '../public/locales/modelmanager/en.json';
declare module 'i18next' {
// Extend CustomTypeOptions
interface CustomTypeOptions {
// Setting Default Namespace As English
defaultNS: 'en';
// Custom Types For Resources
resources: {
common: typeof common;
unifiedcanvas: typeof unifiedcanvas;
options: typeof options;
gallery: typeof gallery;
toast: typeof toast;
hotkeys: typeof hotkeys;
settings: typeof settings;
tooltip: typeof tooltip;
modelmanager: typeof modelmanager;
};
// Never Return Null
returnNull: false;
}
}