Add initial translation keys

This commit is contained in:
jeffvli
2023-10-26 03:59:05 -07:00
parent 68df672953
commit eb5ad541d9
77 changed files with 1798 additions and 692 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ import { z } from 'zod';
import { ssType } from '/@/renderer/api/subsonic/subsonic-types';
import { ServerListItem } from '/@/renderer/api/types';
import { toast } from '/@/renderer/components/toast/index';
import i18n from '/@/i18n/i18n';
const c = initContract();
@@ -106,7 +107,7 @@ axiosClient.interceptors.response.use(
if (data['subsonic-response'].error.code !== 0) {
toast.error({
message: data['subsonic-response'].error.message,
title: 'Issue from Subsonic API',
title: i18n.t('error.genericError', { postProcess: 'sentenceCase' }) as string,
});
}
}