Add license information

This commit is contained in:
Luca Bosin
2023-08-28 22:47:55 +02:00
parent ec6d44531b
commit 7dcb27eede
8 changed files with 133 additions and 34 deletions

View File

@ -59,7 +59,7 @@ export const str = derived(language, $language => {
});
export const strf = derived(language, $language => {
function translate(translations: Translation | string, ...args: any[]) {
function translate(translations: Translation | string | undefined, ...args: any[]) {
if (translations === undefined) return undefined;
if (typeof translations === 'string') return translations;
const str = translations[$language];