@quenty/clienttranslator 8.20.0 → 8.21.0

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [8.21.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/clienttranslator@8.20.0...@quenty/clienttranslator@8.21.0) (2023-05-26)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Fix localization warnings ([3e98cd7](https://github.com/Quenty/NevermoreEngine/commit/3e98cd7135a0d174b4a6f1059b6a2f9fc03b9d6f))
12
+
13
+
14
+
15
+
16
+
6
17
  # [8.20.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/clienttranslator@8.19.0...@quenty/clienttranslator@8.20.0) (2023-05-08)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/clienttranslator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/clienttranslator",
3
- "version": "8.20.0",
3
+ "version": "8.21.0",
4
4
  "description": "Gets local translator for player",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,17 +25,17 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/blend": "^6.17.0",
29
- "@quenty/instanceutils": "^7.13.0",
28
+ "@quenty/blend": "^6.18.0",
29
+ "@quenty/instanceutils": "^7.14.0",
30
30
  "@quenty/loader": "^6.2.1",
31
31
  "@quenty/maid": "^2.5.0",
32
32
  "@quenty/promise": "^6.5.0",
33
33
  "@quenty/pseudolocalize": "^3.2.0",
34
- "@quenty/rx": "^7.10.0",
34
+ "@quenty/rx": "^7.11.0",
35
35
  "@quenty/table": "^3.2.0"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "2ad8cea7dd3ad79a39afd7d7b785b489b90553fd"
40
+ "gitHead": "11058e90e51ea83d3dad6ae9abe59cc19c36b94b"
41
41
  }
@@ -40,17 +40,20 @@ function LocalizationServiceUtils.promiseTranslator(player)
40
40
  timeout = 0.5
41
41
  end
42
42
 
43
+ local rejectedCauseOfTimeout = false
43
44
  task.delay(timeout, function()
44
45
  if not asyncTranslatorPromise:IsPending() then
45
46
  return
46
47
  end
48
+
49
+ rejectedCauseOfTimeout = true
47
50
  asyncTranslatorPromise:Reject(
48
51
  ("GetTranslatorForPlayerAsync is still pending after %f, using local table")
49
52
  :format(timeout))
50
53
  end)
51
54
 
52
55
  return asyncTranslatorPromise:Catch(function(err)
53
- if err ~= ERROR_PUBLISH_REQUIRED then
56
+ if err ~= ERROR_PUBLISH_REQUIRED and not rejectedCauseOfTimeout then
54
57
  warn(("[LocalizationServiceUtils.promiseTranslator] - %s"):format(tostring(err)))
55
58
  end
56
59