mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-01 14:05:05 +02:00
UBER-318: Allow to configure default language (#3342)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user