Skip to content

Commit acb41bb

Browse files
author
Unity Technologies
committed
com.unity.localization@1.5.9
## [1.5.9] - 2025-11-13 ### Fixed - Fixed Addressables Analyzer not checking the table addresses correctly. ([LOC-1260](https://issuetracker.unity3d.com/product/unity/issues/guid/LOC-1260)) - Fixed an issue where negative values could be treated differently, causing invalid plural formatting. ([LOC-1258](https://issuetracker.unity3d.com/product/unity/issues/guid/LOC-1258)) - Fixed exception when pushing to a Google Sheet that had 1 less row than required. ([LOC-1261](https://issuetracker.unity3d.com/product/unity/issues/guid/LOC-1261)) - Fixed iOS and Mac builds not including localization data due to an if UNITY_INCLUDE_TESTS exclusion. ([LOC-1270](https://issuetracker.unity3d.com/product/unity/issues/guid/LOC-1270))
1 parent 5163e87 commit acb41bb

21 files changed

+190
-120
lines changed

.attestation.p7m

0 Bytes
Binary file not shown.

.signature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"timestamp":1759161884,"signature":"QwaUGWQW7VE2okGWrdkLWxh4+4XU+Io//8XmWJNzB51axuyY/JNOGEZ5Nd3M4mUy2OOI5KkeJ6mpJClocLgITgmOpeIA49nsamwxNBYJr4RKV05wEaQWMnm+vmaULrzVW/nNmoeQddKNGBRfHI+Uer3fwSvHGSW8ypQZaDjEMQrs+nEvf3cqjD6jJcH+zBmOzTWQgJHiRQ3N3Asr7+SIcCgmxbsWQoN2Tlc4uGy/x6Th6qAwuWU++RgUht4AOQr31yZvI016KwiswHuikY8D3lHSBsGNlMmulXEk2RDejGfck3R7EjveX5toJVMcHfsY60Vvw5eVH2hbPAGhfWJAdvNojtDIupvkZpb03oqT/jeCSW2wlTkmw6ruQyoynxvGzCqv7CyXe8CvQ2aPUVxR5OvwX5Ltm2Bh+9r3++mxrHuX2onfXr5rGJzx3ISHdojDiTdwv/uiJY4IrObNAl24Eac7TEqffhOiOMvV6jrg38vQNk5Gkb79teJfmaaM1e5a","publicKey":"LS0tLS1CRUdJTiBQVUJMSUMgS0VZL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WlROQWdNQkFBRT0KLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg"}

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
All notable changes to this package will be documented in this file.
44

5+
## [1.5.9] - 2025-11-13
6+
7+
### Fixed
8+
9+
- Fixed Addressables Analyzer not checking the table addresses correctly. ([LOC-1260](https://issuetracker.unity3d.com/product/unity/issues/guid/LOC-1260))
10+
- Fixed an issue where negative values could be treated differently, causing invalid plural formatting. ([LOC-1258](https://issuetracker.unity3d.com/product/unity/issues/guid/LOC-1258))
11+
- Fixed exception when pushing to a Google Sheet that had 1 less row than required. ([LOC-1261](https://issuetracker.unity3d.com/product/unity/issues/guid/LOC-1261))
12+
- Fixed iOS and Mac builds not including localization data due to an if UNITY_INCLUDE_TESTS exclusion. ([LOC-1270](https://issuetracker.unity3d.com/product/unity/issues/guid/LOC-1270))
13+
514
## [1.5.8] - 2025-09-26
615

716
### Fixed

Editor/Addressables/StringTableAnalyzeRule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ protected virtual void Analyze(AddressableAssetSettings settings, GroupResolver
105105

106106
// Address
107107
var expectedAddress = AddressHelper.GetTableAddress(table.TableCollectionName, table.LocaleIdentifier);
108-
if (!entry.labels.Contains(expectedLabel))
108+
if (entry.address != expectedAddress)
109109
{
110110
Results.Add(new AnalyzeResultWithFixAction
111111
{

Editor/Platform/iOS/BuildPlayerIOS.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
// The PBX classes used here are part of the Mac player, which is
2-
// often missing in test environments. This code is excluded from test builds
3-
// to avoid compilation failures on CI.
4-
#if !UNITY_INCLUDE_TESTS
5-
61
#if ((UNITY_TVOS || UNITY_STANDALONE_OSX || UNITY_VISIONOS) && ENABLE_LOCALIZATION_XCODE_SUPPORT) || (UNITY_IOS || UNITY_IPHONE)
72
using UnityEditor.Build;
83
using UnityEditor.Build.Reporting;
@@ -91,4 +86,3 @@ static void ClearPlayerSettingsDirtyFlag()
9186
}
9287
}
9388
#endif
94-
#endif

Editor/Platform/iOS/Player.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
// The PBX classes used here are part of the Mac player, which is
2-
// often missing in test environments. This code is excluded from test builds
3-
// to avoid compilation failures on CI.
4-
#if !UNITY_INCLUDE_TESTS
5-
61
#if ((UNITY_TVOS || UNITY_STANDALONE_OSX || UNITY_VISIONOS) && ENABLE_LOCALIZATION_XCODE_SUPPORT) || (UNITY_IOS || UNITY_IPHONE)
72
using System;
83
using System.IO;
@@ -214,4 +209,3 @@ static void WriteDefaultLocalizedValue(string valueName, Locale locale, Localize
214209
}
215210
}
216211
#endif
217-
#endif

Editor/Plugins/Google/GoogleSheets.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public async Task PushStringTableCollectionAsync(int sheetId, StringTableCollect
293293

294294
// Do we need to resize the sheet?
295295
var requiredRows = collection.SharedData.Entries.Count + 1; // + 1 for the header row
296-
if (collection.SharedData.Entries.Count > rowCount)
296+
if (requiredRows > rowCount)
297297
{
298298
reporter?.ReportProgress("Generating sheet resize request", 0.15f);
299299
requests.Add(ResizeRow(sheetId, requiredRows));
@@ -357,7 +357,7 @@ public void PushStringTableCollection(int sheetId, StringTableCollection collect
357357

358358
// Do we need to resize the sheet?
359359
var requiredRows = collection.SharedData.Entries.Count + 1; // + 1 for the header row
360-
if (collection.SharedData.Entries.Count > rowCount)
360+
if (requiredRows > rowCount)
361361
{
362362
reporter?.ReportProgress("Generating sheet resize request", 0.15f);
363363
requests.Add(ResizeRow(sheetId, requiredRows));

Runtime/Localized Reference/LocalizedAsset.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,7 @@ public override AsyncOperationHandle<Object> LoadAssetAsObjectAsync()
295295
/// [WebGL](https://docs.unity3d.com/Packages/com.unity.addressables@latest/index.html?subfolder=/manual/SynchronousAddressables.html#webgl).
296296
/// </summary>
297297
/// <returns>Returns the localized asset.</returns>
298-
public TObject LoadAsset()
299-
{
300-
return LoadAssetAsync().WaitForCompletion();
301-
}
298+
public TObject LoadAsset() => AsyncOperationUtility.SynchronousLoad(LoadAssetAsync());
302299

303300
/// <inheritdoc/>
304301
protected internal override void ForceUpdate()

Runtime/Localized Reference/LocalizedString.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ public bool RefreshString()
266266
/// [WebGL](https://docs.unity3d.com/Packages/com.unity.addressables@latest/index.html?subfolder=/manual/SynchronousAddressables.html#webgl).
267267
/// </summary>
268268
/// <returns>The localized string for the <see cref="LocalizationSettings.SelectedLocale"/> or <see cref="LocalizedReference.LocaleOverride"/> if it is not <see langword="null"/>.</returns>
269-
public string GetLocalizedString() => GetLocalizedStringAsync().WaitForCompletion();
269+
public string GetLocalizedString() => AsyncOperationUtility.SynchronousLoad(GetLocalizedStringAsync());
270270

271271
/// <summary>
272272
/// Provides a translated string from a <see cref="StringTable"/> with the <see cref="TableReference"/> and
@@ -285,15 +285,15 @@ public bool RefreshString()
285285
/// </summary>
286286
/// <param name="arguments">The arguments to pass into the Smart String formatter or [String.Format](https://docs.microsoft.com/en-us/dotnet/api/system.string.format).</param>
287287
/// <returns>The localized string for the <see cref="LocalizationSettings.SelectedLocale"/> or <see cref="LocalizedReference.LocaleOverride"/> if it is not <see langword="null"/>.</returns>
288-
public string GetLocalizedString(params object[] arguments) => GetLocalizedStringAsync((IList<object>)arguments).WaitForCompletion();
288+
public string GetLocalizedString(params object[] arguments) => AsyncOperationUtility.SynchronousLoad(GetLocalizedStringAsync((IList<object>)arguments));
289289

290290
/// <summary>
291291
/// Provides a translated string from a <see cref="StringTable"/> with the <see cref="TableReference"/> and
292292
/// the translated string that matches <see cref="TableEntryReference"/>.
293293
/// </summary>
294294
/// <param name="arguments">The arguments to pass into the Smart String formatter or [String.Format](https://docs.microsoft.com/en-us/dotnet/api/system.string.format).</param>
295295
/// <returns>The localized string for the <see cref="LocalizationSettings.SelectedLocale"/> or <see cref="LocalizedReference.LocaleOverride"/> if it is not <see langword="null"/>.</returns>
296-
public string GetLocalizedString(IList<object> arguments) => GetLocalizedStringAsync(arguments).WaitForCompletion();
296+
public string GetLocalizedString(IList<object> arguments) => AsyncOperationUtility.SynchronousLoad(GetLocalizedStringAsync(arguments));
297297

298298
/// <summary>
299299
/// Provides a translated string from a <see cref="StringTable"/> with the <see cref="TableReference"/> and

Runtime/Localized Reference/LocalizedTable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public LocalizedTable()
153153
/// [WebGL](https://docs.unity3d.com/Packages/com.unity.addressables@latest/index.html?subfolder=/manual/SynchronousAddressables.html#webgl).
154154
/// </summary>
155155
/// <returns></returns>
156-
public TTable GetTable() => GetTableAsync().WaitForCompletion();
156+
public TTable GetTable() => AsyncOperationUtility.SynchronousLoad(GetTableAsync());
157157

158158
/// <summary>
159159
/// Force an update as if the <see cref="LocalizationSettings.SelectedLocale"/> had changed.

0 commit comments

Comments
 (0)