first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
/**
* Gets the language set for the page.
* @param persistenceType - Where to persist the value. Default is `sessionStorage` if available.
*/
export declare function getLanguage(persistenceType?: 'localStorage' | 'sessionStorage' | 'none'): string | null;
/**
* Sets the language for the page (by adjusting the lang attribute of the html element).
* @param language - Language to set.
* @param persistenceType - Where to persist the value. Default is `sessionStorage` if available.
*/
export declare function setLanguage(language: string, persistenceType?: 'localStorage' | 'sessionStorage' | 'none'): void;
/**
* Sets the language for the page (by adjusting the lang attribute of the html element).
* @deprecated Use string parameter version.
* @param language - Language to set.
* @param avoidPersisting - If true, don't store the value.
*/
export declare function setLanguage(language: string, avoidPersisting?: boolean): void;