Skip to content

Commit 80f1dba

Browse files
author
Simon Planinschek
committed
Removed static method setLanguage
1 parent 0eacc1c commit 80f1dba

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

src/index.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,6 @@ class Internationalization<T extends string> {
7272
}
7373
}
7474

75-
/**
76-
* Save a language to a cookie
77-
* This method will not check if the language you want to set is supported
78-
* Please note! If you have changed the cookie name, you must change it here as well
79-
*
80-
* @param language { string } - Language to set
81-
* @param cookieName { string } - Optional: Cookie name
82-
*/
83-
static setLanguage(language: string, cookieName?: string): void {
84-
if (canUseDOM()) {
85-
cookieName = typeof cookieName === 'string' ? cookieName : 'language'
86-
87-
setCookie(cookieName, language)
88-
}
89-
}
90-
9175
/**
9276
* Get the current language
9377
* This method will first check if a language cookie is present.

0 commit comments

Comments
 (0)