UBER-318: Allow to configure default language (#3342)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2023-06-05 14:36:04 +07:00
committed by GitHub
parent d0d98f286c
commit b6f9dba84a
10 changed files with 43 additions and 9 deletions
+9
View File
@@ -18,6 +18,15 @@ import { writable } from 'svelte/store'
export { default as Theme } from './Theme.svelte'
/**
* @public
*/
export const setDefaultLanguage = (language: string): void => {
if (localStorage.getItem('lang') === null) {
localStorage.setItem('lang', language)
}
}
/**
* @public
*/