mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-11-04 05:36:13 +08:00 
			
		
		
		
	Revert silentTranslationWarn change
				
					
				
			This commit is contained in:
		@@ -3,9 +3,9 @@ import bgBG from "./languages/bg-BG";
 | 
			
		||||
import daDK from "./languages/da-DK";
 | 
			
		||||
import deDE from "./languages/de-DE";
 | 
			
		||||
import en from "./languages/en";
 | 
			
		||||
import fa from "./languages/fa";
 | 
			
		||||
import esEs from "./languages/es-ES";
 | 
			
		||||
import etEE from "./languages/et-EE";
 | 
			
		||||
import fa from "./languages/fa";
 | 
			
		||||
import frFR from "./languages/fr-FR";
 | 
			
		||||
import hu from "./languages/hu";
 | 
			
		||||
import itIT from "./languages/it-IT";
 | 
			
		||||
@@ -52,12 +52,13 @@ const rtlLangs = ["fa"];
 | 
			
		||||
export const currentLocale = () => localStorage.locale || "en";
 | 
			
		||||
 | 
			
		||||
export const localeDirection = () => {
 | 
			
		||||
    return rtlLangs.includes(currentLocale()) ? "rtl" : "ltr"
 | 
			
		||||
}
 | 
			
		||||
    return rtlLangs.includes(currentLocale()) ? "rtl" : "ltr";
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
export const i18n = createI18n({
 | 
			
		||||
    locale: currentLocale(),
 | 
			
		||||
    fallbackLocale: "en",
 | 
			
		||||
    silentFallbackWarn: true,
 | 
			
		||||
    silentTranslationWarn: process.env.NODE_ENV !== "development",
 | 
			
		||||
    silentTranslationWarn: true,
 | 
			
		||||
    messages: languageList,
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user