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
This commit is contained in:
@@ -51,7 +51,7 @@ const DownloadQueue: React.FC = () => {
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
setTitle(t('screens.DownloadQueue.download-queue'));
|
||||
setTitle(t('download.queue.title'));
|
||||
setAction(null);
|
||||
}, []);
|
||||
|
||||
@@ -59,7 +59,7 @@ const DownloadQueue: React.FC = () => {
|
||||
const onDragEnd = (result: DropResult) => {};
|
||||
|
||||
if (queue.length === 0) {
|
||||
return <EmptyView message={t('screens.DownloadQueue.no-downloads')} />;
|
||||
return <EmptyView message={t('download.queue.label.no_downloads')} />;
|
||||
}
|
||||
|
||||
const handleDelete = (chapter: IChapter) => {
|
||||
|
||||
Reference in New Issue
Block a user