@quenty/clienttranslator 14.19.4-canary.559.9f38947.0 → 14.20.0-canary.559.b31717d.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,7 +3,7 @@
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
- ## [14.19.4-canary.559.9f38947.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/clienttranslator@14.19.3...@quenty/clienttranslator@14.19.4-canary.559.9f38947.0) (2025-05-10)
6
+ # [14.20.0-canary.559.b31717d.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/clienttranslator@14.19.3...@quenty/clienttranslator@14.20.0-canary.559.b31717d.0) (2025-05-10)
7
7
 
8
8
 
9
9
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/clienttranslator",
3
- "version": "14.19.4-canary.559.9f38947.0",
3
+ "version": "14.20.0-canary.559.b31717d.0",
4
4
  "description": "Gets local translator for player",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,20 +25,20 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/blend": "12.18.4-canary.559.9f38947.0",
29
- "@quenty/instanceutils": "13.17.4-canary.559.9f38947.0",
30
- "@quenty/loader": "10.8.4-canary.559.9f38947.0",
31
- "@quenty/maid": "3.4.4-canary.559.9f38947.0",
32
- "@quenty/promise": "10.10.5-canary.559.9f38947.0",
33
- "@quenty/promisemaid": "5.10.5-canary.559.9f38947.0",
34
- "@quenty/pseudolocalize": "3.4.3-canary.559.9f38947.0",
35
- "@quenty/rx": "13.17.4-canary.559.9f38947.0",
28
+ "@quenty/blend": "12.19.0-canary.559.b31717d.0",
29
+ "@quenty/instanceutils": "13.18.0-canary.559.b31717d.0",
30
+ "@quenty/loader": "10.8.3",
31
+ "@quenty/maid": "3.4.3",
32
+ "@quenty/promise": "10.11.0-canary.559.b31717d.0",
33
+ "@quenty/promisemaid": "5.11.0-canary.559.b31717d.0",
34
+ "@quenty/pseudolocalize": "3.4.2",
35
+ "@quenty/rx": "13.18.0-canary.559.b31717d.0",
36
36
  "@quenty/string": "3.3.3",
37
- "@quenty/table": "3.7.5-canary.559.9f38947.0",
38
- "@quenty/valueobject": "13.17.4-canary.559.9f38947.0"
37
+ "@quenty/table": "3.7.4",
38
+ "@quenty/valueobject": "13.18.0-canary.559.b31717d.0"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
- "gitHead": "9f38947767d202411936a5c98898033df5865da0"
43
+ "gitHead": "b31717d8c9f7620c457f5018a2affa760a65334a"
44
44
  }
@@ -88,14 +88,7 @@ function LocalizationEntryParserUtils._parseLocaleFromName(name: string)
88
88
  end
89
89
  end
90
90
 
91
- function LocalizationEntryParserUtils._parseTableToResultsList(
92
- lookupTable,
93
- sourceLocaleId: string,
94
- localeId: string,
95
- baseKey: string,
96
- dataTable,
97
- tableName: string
98
- )
91
+ function LocalizationEntryParserUtils._parseTableToResultsList(lookupTable, sourceLocaleId: string, localeId: string, baseKey: string, dataTable, tableName: string)
99
92
  assert(type(lookupTable) == "table", "Bad lookupTable")
100
93
  assert(type(sourceLocaleId) == "string", "Bad sourceLocaleId")
101
94
  assert(type(localeId) == "string", "Bad localeId")
@@ -106,27 +99,20 @@ function LocalizationEntryParserUtils._parseTableToResultsList(
106
99
  for index, text in dataTable do
107
100
  local key = baseKey .. index
108
101
  if type(text) == "table" then
109
- LocalizationEntryParserUtils._parseTableToResultsList(
110
- lookupTable,
111
- sourceLocaleId,
112
- localeId,
113
- key .. ".",
114
- text,
115
- tableName
116
- )
102
+ LocalizationEntryParserUtils._parseTableToResultsList(lookupTable, sourceLocaleId, localeId, key .. ".", text, tableName)
117
103
  elseif type(text) == "string" then
118
104
  local found = lookupTable[key]
119
105
  if found then
120
106
  found.Values[localeId] = text
121
107
  else
122
108
  found = {
123
- Example = text,
124
- Key = key,
125
- Context = string.format("[TEMP] - Generated from %s with key %s", tableName, key),
126
- Source = text, -- Tempt!
109
+ Example = text;
110
+ Key = key;
111
+ Context = string.format("[TEMP] - Generated from %s with key %s", tableName, key);
112
+ Source = text; -- Tempt!
127
113
  Values = {
128
- [localeId] = text,
129
- },
114
+ [localeId] = text;
115
+ };
130
116
  }
131
117
 
132
118
  lookupTable[key] = found
@@ -149,4 +135,4 @@ function LocalizationEntryParserUtils._parseTableToResultsList(
149
135
  end
150
136
  end
151
137
 
152
- return LocalizationEntryParserUtils
138
+ return LocalizationEntryParserUtils
@@ -21,16 +21,16 @@ local RunService = game:GetService("RunService")
21
21
  local Blend = require("Blend")
22
22
  local LocalizationEntryParserUtils = require("LocalizationEntryParserUtils")
23
23
  local Maid = require("Maid")
24
- local NumberLocalizationUtils = require("NumberLocalizationUtils")
25
- local Observable = require("Observable")
26
- local Promise = require("Promise")
27
24
  local PseudoLocalize = require("PseudoLocalize")
28
25
  local Rx = require("Rx")
29
26
  local RxInstanceUtils = require("RxInstanceUtils")
30
- local ServiceBag = require("ServiceBag")
31
27
  local TranslationKeyUtils = require("TranslationKeyUtils")
32
28
  local TranslatorService = require("TranslatorService")
33
29
  local ValueObject = require("ValueObject")
30
+ local NumberLocalizationUtils = require("NumberLocalizationUtils")
31
+ local ServiceBag = require("ServiceBag")
32
+ local Observable = require("Observable")
33
+ local Promise = require("Promise")
34
34
 
35
35
  local JSONTranslator = {}
36
36
  JSONTranslator.ClassName = "JSONTranslator"
@@ -475,4 +475,4 @@ function JSONTranslator.Destroy(self: JSONTranslator)
475
475
  setmetatable(self :: any, nil)
476
476
  end
477
477
 
478
- return JSONTranslator
478
+ return JSONTranslator
@@ -227,11 +227,7 @@ local function addGroupDelimiters(numberStr, delimiter: string): string
227
227
  return formatted
228
228
  end
229
229
 
230
- local function findDenominationEntry(
231
- localeInfo,
232
- number: number,
233
- roundingBehaviourType: RoundingBehaviourTypes.RoundingBehaviourType
234
- )
230
+ local function findDenominationEntry(localeInfo, number: number, roundingBehaviourType: RoundingBehaviourTypes.RoundingBehaviourType)
235
231
  local denominationEntry = localeInfo[1] -- Default to base denominations
236
232
  local absOfNumber = math.abs(number)
237
233
  for i = #localeInfo, 2, -1 do
@@ -287,12 +283,7 @@ end
287
283
  @param numSignificantDigits number?
288
284
  @return string
289
285
  ]=]
290
- function NumberLocalizationUtils.abbreviate(
291
- number: number,
292
- locale: string,
293
- roundingBehaviourType: RoundingBehaviourTypes.RoundingBehaviourType?,
294
- numSignificantDigits: number?
295
- ): string
286
+ function NumberLocalizationUtils.abbreviate(number: number, locale: string, roundingBehaviourType: RoundingBehaviourTypes.RoundingBehaviourType?, numSignificantDigits: number?): string
296
287
  assert(type(number) == "number", "Bad number")
297
288
  local roundingBehavior = roundingBehaviourType or RoundingBehaviourTypes.ROUND_TO_CLOSEST
298
289
  local significantDigits = numSignificantDigits or 3
@@ -1,5 +1,4 @@
1
- local require =
2
- require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).bootstrapStory(script)
1
+ local require = require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).bootstrapStory(script)
3
2
 
4
3
  local Jest = require("Jest")
5
4
  local NumberLocalizationUtils = require("NumberLocalizationUtils")
@@ -7,9 +7,9 @@
7
7
 
8
8
  local require = require(script.Parent.loader).load(script)
9
9
 
10
- local LocalizationService = game:GetService("LocalizationService")
11
10
  local Players = game:GetService("Players")
12
11
  local RunService = game:GetService("RunService")
12
+ local LocalizationService = game:GetService("LocalizationService")
13
13
 
14
14
  local LocalizationServiceUtils = require("LocalizationServiceUtils")
15
15
  local Maid = require("Maid")
@@ -235,4 +235,4 @@ function TranslatorService.Destroy(self: TranslatorService)
235
235
  self._maid:DoCleaning()
236
236
  end
237
237
 
238
- return TranslatorService
238
+ return TranslatorService
@@ -74,4 +74,4 @@ function LocalizationServiceUtils.promisePlayerTranslator(player: Player)
74
74
  end)
75
75
  end
76
76
 
77
- return LocalizationServiceUtils
77
+ return LocalizationServiceUtils
@@ -23,4 +23,4 @@ function TranslationKeyUtils.getTranslationKey(prefix: string, text: string): st
23
23
  return prefix .. "." .. firstWords
24
24
  end
25
25
 
26
- return TranslationKeyUtils
26
+ return TranslationKeyUtils