There was an error while loading. Please reload this page.
1 parent 0eacc1c commit 80f1dbaCopy full SHA for 80f1dba
1 file changed
src/index.ts
@@ -72,22 +72,6 @@ class Internationalization<T extends string> {
72
}
73
74
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
91
/**
92
* Get the current language
93
* This method will first check if a language cookie is present.
0 commit comments