@quenty/clienttranslator 14.6.1 → 14.6.2-canary.497.2df557a.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
+ ## [14.6.2-canary.497.2df557a.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/clienttranslator@14.6.1...@quenty/clienttranslator@14.6.2-canary.497.2df557a.0) (2024-09-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Rename `:sub()` to `string.sub` ([6874e06](https://github.com/Quenty/NevermoreEngine/commit/6874e06e456d7094a2d7f25a3a7b24a40d77fe3c))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [14.6.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/clienttranslator@14.6.0...@quenty/clienttranslator@14.6.1) (2024-09-20)
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": "14.6.1",
3
+ "version": "14.6.2-canary.497.2df557a.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.5.1",
29
- "@quenty/instanceutils": "^13.5.0",
30
- "@quenty/loader": "^10.4.0",
31
- "@quenty/maid": "^3.3.0",
32
- "@quenty/promise": "^10.4.0",
33
- "@quenty/promisemaid": "^5.4.0",
34
- "@quenty/pseudolocalize": "^3.3.0",
35
- "@quenty/rx": "^13.5.0",
36
- "@quenty/string": "^3.2.0",
37
- "@quenty/table": "^3.5.0",
38
- "@quenty/valueobject": "^13.5.0"
28
+ "@quenty/blend": "12.5.2-canary.497.2df557a.0",
29
+ "@quenty/instanceutils": "13.5.1-canary.497.2df557a.0",
30
+ "@quenty/loader": "10.4.1-canary.497.2df557a.0",
31
+ "@quenty/maid": "3.3.0",
32
+ "@quenty/promise": "10.4.1-canary.497.2df557a.0",
33
+ "@quenty/promisemaid": "5.4.1-canary.497.2df557a.0",
34
+ "@quenty/pseudolocalize": "3.3.1-canary.497.2df557a.0",
35
+ "@quenty/rx": "13.5.1-canary.497.2df557a.0",
36
+ "@quenty/string": "3.2.1-canary.497.2df557a.0",
37
+ "@quenty/table": "3.5.0",
38
+ "@quenty/valueobject": "13.5.1-canary.497.2df557a.0"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
- "gitHead": "a0dc70feb2e9ae87eccca4193951975ff59b7aae"
43
+ "gitHead": "2df557a9a5463c2c7beb257ff9f7786ac8ad746a"
44
44
  }
@@ -60,8 +60,8 @@ function LocalizationEntryParserUtils.decodeFromTable(tableName, localeId, dataT
60
60
  end
61
61
 
62
62
  function LocalizationEntryParserUtils._parseLocaleFromName(name)
63
- if name:sub(-5) == ".json" then
64
- return name:sub(1, #name-5)
63
+ if string.sub(name, -5) == ".json" then
64
+ return string.sub(name, 1, #name-5)
65
65
  else
66
66
  return name
67
67
  end
@@ -226,7 +226,7 @@ function JSONTranslator:ToTranslationKey(prefix, text)
226
226
  assert(type(text) == "string", "Bad text")
227
227
 
228
228
  local translationKey = TranslationKeyUtils.getTranslationKey(prefix, text)
229
- local context = ("automatic.%s"):format(translationKey)
229
+ local context = string.format("automatic.%s", translationKey)
230
230
 
231
231
  -- TODO: Only set if we don't need it
232
232
  self:SetEntryValue(translationKey, text, context, "en", text)