@quenty/localizedtextutils 12.24.1 → 12.24.2-canary.70373ea.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 +11 -0
- package/package.json +2 -2
- package/src/Shared/LocalizedTextUtils.lua +4 -4
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
|
+
## [12.24.2-canary.70373ea.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/localizedtextutils@12.24.1...@quenty/localizedtextutils@12.24.2-canary.70373ea.0) (2026-02-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **localizedtextutils:** make translationArgs optional in type signatures ([70373ea](https://github.com/Quenty/NevermoreEngine/commit/70373ea09b23f7dbb09f9288eb57218a5c84db17))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [12.24.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/localizedtextutils@12.24.0...@quenty/localizedtextutils@12.24.1) (2026-01-21)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/localizedtextutils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/localizedtextutils",
|
|
3
|
-
"version": "12.24.
|
|
3
|
+
"version": "12.24.2-canary.70373ea.0",
|
|
4
4
|
"description": "Localized text utils which changes translationKey structures to shared locations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"@quenty/promisemaid": "5.13.0",
|
|
37
37
|
"@quenty/rx": "13.23.1"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "70373ea09b23f7dbb09f9288eb57218a5c84db17"
|
|
40
40
|
}
|
|
@@ -29,7 +29,7 @@ export type TranslationArgs = { [string]: LocalizedTextData | number | string }
|
|
|
29
29
|
]=]
|
|
30
30
|
export type LocalizedTextData = {
|
|
31
31
|
translationKey: string,
|
|
32
|
-
translationArgs: TranslationArgs
|
|
32
|
+
translationArgs: TranslationArgs?,
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
--[=[
|
|
@@ -38,7 +38,7 @@ export type LocalizedTextData = {
|
|
|
38
38
|
@param translationArgs TranslationArgs
|
|
39
39
|
@return LocalizedTextData
|
|
40
40
|
]=]
|
|
41
|
-
function LocalizedTextUtils.create(translationKey: string, translationArgs: TranslationArgs): LocalizedTextData
|
|
41
|
+
function LocalizedTextUtils.create(translationKey: string, translationArgs: TranslationArgs?): LocalizedTextData
|
|
42
42
|
assert(type(translationKey) == "string", "Bad translationKey")
|
|
43
43
|
assert(type(translationArgs) == "table" or translationArgs == nil, "Bad translationArgs")
|
|
44
44
|
|
|
@@ -70,7 +70,7 @@ end
|
|
|
70
70
|
function LocalizedTextUtils.formatByKeyRecursive(
|
|
71
71
|
translator: Translator,
|
|
72
72
|
translationKey: string,
|
|
73
|
-
translationArgs: TranslationArgs
|
|
73
|
+
translationArgs: TranslationArgs?,
|
|
74
74
|
extraArgs
|
|
75
75
|
)
|
|
76
76
|
assert(translator, "Bad translator")
|
|
@@ -120,7 +120,7 @@ end
|
|
|
120
120
|
function LocalizedTextUtils.observeFormatByKeyRecursive(
|
|
121
121
|
translator,
|
|
122
122
|
translationKey: string,
|
|
123
|
-
translationArgs: TranslationArgs
|
|
123
|
+
translationArgs: TranslationArgs?,
|
|
124
124
|
extraArgs
|
|
125
125
|
)
|
|
126
126
|
assert(translator, "Bad translator")
|