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:
2026-08-09 13:09:39 +02:00
committed by Gitea
parent 6bf315e4b8
commit 995e77b69a
31 changed files with 55 additions and 55 deletions
+2 -2
View File
@@ -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';