com.xmobitea.changx.mini-localization 1.4.5 → 1.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@
12
12
  [CustomEditor(typeof(LocalizationManager))]
13
13
  public class LocalizationManagerEditor : Editor
14
14
  {
15
- private const string Version = "1.4.2";
15
+ private const string Version = "1.4.6";
16
16
  private const string Library = @".\Library\PackageCache\com.xmobitea.changx.mini-localization@" + Version;
17
17
  //private const string Library = @".\Assets\MiniLocalization";
18
18
  private const string ProcessPath = @"\Editor\Tools\GetLocalizationTools";
@@ -209,6 +209,10 @@
209
209
 
210
210
  contentBuilder.AppendLine(" public const string " + validKey + " = " + "\"" + key + "\";");
211
211
  }
212
+ else
213
+ {
214
+ Debug.LogError("[Localization] Dupplicate key " + key);
215
+ }
212
216
  }
213
217
  }
214
218
 
@@ -97,7 +97,7 @@
97
97
  }
98
98
 
99
99
  #if ADDRESSABLE
100
- if (thisLanguage.XMLRef != null)
100
+ if (thisLanguage.XMLRef != null && thisLanguage.XMLRef.RuntimeKeyIsValid())
101
101
  {
102
102
  thisLanguage.XMLRef.LoadAssetAsync().Completed += (handle) =>
103
103
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.xmobitea.changx.mini-localization",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "displayName": "XmobiTea Localization",
5
5
  "description": "XmobiTea Unity package",
6
6
  "unity": "2020.3",