Files
suwayomi-material-you-webui/src/i18n/i18next.d.ts
schroda d58bd6cd92 add translation keys (#246)
* Fix i18n tsc issue

"t" can return null by default.
This was already disabled in the config, but it had no effect on tsc.

* Fix translation in "DefaultNavBar"

key was missing and since this is a constant the translation wouldn't update in case the language got changed after first load.

* Enable typing for i18n translation keys

* Add translation keys
2023-03-23 16:29:32 +03:30

10 lines
198 B
TypeScript

import 'i18next';
import resources from 'i18n/translations';
declare module 'i18next' {
interface CustomTypeOptions {
returnNull: false;
resources: typeof resources.en;
}
}