Browse Source

Added remote code in case it mismatches POEditor

CPK 5 months ago
parent
commit
759178c1b3

+ 1 - 0
src/PixiEditor/Data/Localization/LocalizationData.json

@@ -32,6 +32,7 @@
     {
       "name": "中文",
       "code": "zh",
+      "remote-code": "zh-CN",
       "localeFileName": "zh.json",
       "iconFileName": "zh.png",
       "lastUpdated": "2023-05-15 03:23:28"

+ 5 - 2
src/PixiEditor/Data/Localization/LocalizationDataSchema.json

@@ -16,18 +16,21 @@
             "description": "The code associated with the language",
             "minLength": 2
           },
+          "remote-code": {
+            "type": "string",
+            "description": "Code used by POEditor",
+            "minLength": 2
+          },
           "localeFileName": {
             "type": "string",
             "description": "The name of the key-value json file found in Data/Localization/Languages. Must be prepended with extension unique name and : (e.g. pixieditor.sampleExtension:en.json)",
             "pattern": ".*\\.json",
-            "format": "uri",
             "default": ".json"
           },
           "iconFileName": {
             "type": "string",
             "description": "The name of the png icon for the language found in Images/LanguageFlags",
             "pattern": ".*\\.png",
-            "format": "uri",
             "default": ".png"
           },
           "rightToLeft": {