Add license information
This commit is contained in:
@ -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];
|
||||
|
||||
Reference in New Issue
Block a user