public static void CreateLangService() { new EnvironmentController(); string locale = PlayerSettings.GetLocaleCopy(); string json; if (!LangUtils.TryLoadLocalStringsFile(locale, out json)) { locale = Service.Get <EnvironmentController>().GetLocale(); if (!LangUtils.TryLoadLocalStringsFile(locale, out json)) { locale = "en_US"; LangUtils.TryLoadLocalStringsFile(locale, out json); } } Lang lang = new Lang(locale); lang.AddStringData(json); }