generated from Seekra/repository-template
style: remove unnecessary function whitespace
Remove the unnecessary whitespace between the function name or the 'function' keyword and the opening parenthesis.
This commit is contained in:
+2
-2
@@ -40,7 +40,7 @@ export const i18n = createI18n({
|
||||
|
||||
const loadedLanguages = new Set();
|
||||
|
||||
export async function loadLanguage (locale) {
|
||||
export async function loadLanguage(locale) {
|
||||
if (!SUPPORTED_LANGUAGES.includes(locale)) {
|
||||
locale = fallbackLocale;
|
||||
}
|
||||
@@ -58,7 +58,7 @@ export async function loadLanguage (locale) {
|
||||
loadedLanguages.add(locale);
|
||||
};
|
||||
|
||||
export const setLocale = async function setLocale (locale) {
|
||||
export const setLocale = async function setLocale(locale) {
|
||||
await loadLanguage(locale);
|
||||
document.documentElement.lang = locale;
|
||||
document.documentElement.dir = LANGUAGES_RTL.includes(locale) ? 'rtl' : 'ltr';
|
||||
|
||||
Reference in New Issue
Block a user