ios端本地化

This commit is contained in:
CaiYanPeng 2021-12-13 17:18:57 +08:00
parent 625e2b7934
commit 16b42a19e4

View File

@ -35,7 +35,7 @@ namespace Assets
string src = Path.Combine(localizedDirectoryPath, locale + ".lproj"); string src = Path.Combine(localizedDirectoryPath, locale + ".lproj");
DirectoryCopy(src, Path.Combine(projectPath, "Unity-iPhone/" + locale + ".lproj")); DirectoryCopy(src, Path.Combine(projectPath, "Unity-iPhone/" + locale + ".lproj"));
string fileRelatvePath = string.Format("Unity-iPhone/{0}.lproj/Localizable.strings", locale); string fileRelatvePath = string.Format("Unity-iPhone/{0}.lproj/InfoPlist.strings", locale);
proj.AddLocalization("Localizable.strings", locale, fileRelatvePath); proj.AddLocalization("Localizable.strings", locale, fileRelatvePath);
} }