Skip to content

Commit

Permalink
chore: use locale code with region code
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 committed Mar 28, 2024
1 parent 94b59e3 commit 78f6168
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Internal/Localization/Editor/AAOL10N.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ namespace Anatawa12.AvatarOptimizer
/// </summary>
public static class AAOL10N
{
public static readonly Localizer Localizer = new Localizer("en", () =>
public static readonly Localizer Localizer = new Localizer("en-us", () =>
{
var localizationFolder = AssetDatabase.GUIDToAssetPath("8b53df9f2e18428bbba2165c4f2af9be") + "/";
return new List<LocalizationAsset>
{
AssetDatabase.LoadAssetAtPath<LocalizationAsset>(localizationFolder + "en.po"),
AssetDatabase.LoadAssetAtPath<LocalizationAsset>(localizationFolder + "ja.po"),
AssetDatabase.LoadAssetAtPath<LocalizationAsset>(localizationFolder + "en-us.po"),
AssetDatabase.LoadAssetAtPath<LocalizationAsset>(localizationFolder + "ja-jp.po"),
};
});

Expand Down
2 changes: 1 addition & 1 deletion Localization/en.po → Localization/en-us.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"Language: en\n"
"Language: en-us\n"

msgid "CheckForUpdate:out-of-date"
msgstr "Newer release of Avatar Optimizer, {0} is available! (Current: {1})"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion Localization/ja.po → Localization/ja-jp.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"Language: ja\n"
"Language: ja-jp\n"

msgid "CheckForUpdate:out-of-date"
msgstr "Avatar Optimizerの新しいバージョン、{0}が公開されています!(現在 {1})"
Expand Down
File renamed without changes.

0 comments on commit 78f6168

Please sign in to comment.