ソースを参照

Add language config option

Configuration stuff is still non-existent.
habeebweeb 4 年 前
コミット
30b2fba954

+ 1 - 0
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/Configuration.cs

@@ -3,5 +3,6 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
     internal static class Configuration
     {
         public static bool ModItemsOnly { get; private set; } = false;
+        public static string CurrentLanguage { get; private set; } = "en";
     }
 }

+ 1 - 1
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/MeidoPhotoStudio.cs

@@ -31,7 +31,7 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
         private void Start()
         {
             Constants.Initialize();
-            Translation.Initialize("en");
+            Translation.Initialize(Configuration.CurrentLanguage);
             SceneManager.sceneLoaded += OnSceneLoaded;
         }