Add image loading
This commit is contained in:
@ -60,6 +60,7 @@ export const strf = derived(language, $language => {
|
||||
* @param {...any} args
|
||||
*/
|
||||
function translate(translations, ...args) {
|
||||
if (translations === undefined) return undefined;
|
||||
if (typeof translations === 'string') return translations;
|
||||
const str = translations[$language];
|
||||
if (str === undefined) return translations.de;
|
||||
|
||||
Reference in New Issue
Block a user