mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
* [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>
35 lines
1.1 KiB
TypeScript
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;
|
|
}
|
|
}
|