gt 2.23.1 → 2.23.2
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
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# gtx-cli
|
|
2
2
|
|
|
3
|
+
## 2.23.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`f9fc280`](https://github.com/generaltranslation/gt/commit/f9fc28057c4352c367406ff4418dd7b75b5111fd)]:
|
|
8
|
+
- @generaltranslation/supported-locales@2.1.39
|
|
9
|
+
|
|
3
10
|
## 2.23.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"androidLocale.js","names":[],"sources":["../../../src/formats/files/androidLocale.ts"],"sourcesContent":["// Android resource directory qualifiers.\n//\n// Android parses the locale out of a `values-*` directory name and fails the\n// build on a name it cannot parse.\n\n/**\n * Returns the qualifier for a locale, without the `values-` prefix.\n *\n * `es` gives `es`, `fr-CA` gives `fr-rCA`, and `zh-Hans` gives `b+zh+Hans`.\n * A tag that does not parse is returned unchanged.\n */\nexport function androidLocaleQualifier(locale: string): string {\n try {\n new Intl.Locale(locale);\n } catch {\n return locale;\n }\n\n // Subtags come from the tag as written. The locale helpers in\n // `@generaltranslation/format` each answer a different question and give the\n // wrong directory here: `standardizeLocale` reads `tl` as `fil` and `cnr` as\n // `sr-ME`, which Android matches to different devices, `getLocaleProperties`\n // maximizes and reports script `Latn` for a bare `es`, and `isValidLocale`\n // rejects
|
|
1
|
+
{"version":3,"file":"androidLocale.js","names":[],"sources":["../../../src/formats/files/androidLocale.ts"],"sourcesContent":["// Android resource directory qualifiers.\n//\n// Android parses the locale out of a `values-*` directory name and fails the\n// build on a name it cannot parse.\n\n/**\n * Returns the qualifier for a locale, without the `values-` prefix.\n *\n * `es` gives `es`, `fr-CA` gives `fr-rCA`, and `zh-Hans` gives `b+zh+Hans`.\n * A tag that does not parse is returned unchanged.\n */\nexport function androidLocaleQualifier(locale: string): string {\n try {\n new Intl.Locale(locale);\n } catch {\n return locale;\n }\n\n // Subtags come from the tag as written. The locale helpers in\n // `@generaltranslation/format` each answer a different question and give the\n // wrong directory here: `standardizeLocale` reads `tl` as `fil` and `cnr` as\n // `sr-ME`, which Android matches to different devices, `getLocaleProperties`\n // maximizes and reports script `Latn` for a bare `es`, and `isValidLocale`\n // rejects configured tags such as `el-EL`.\n const [language, ...rest] = locale.split('-');\n const script = rest.find((part) => /^[A-Za-z]{4}$/.test(part));\n const region = rest.find(\n (part) => /^[A-Za-z]{2}$/.test(part) || /^\\d{3}$/.test(part)\n );\n\n // A script subtag or a numeric region such as `es-419` has no other\n // spelling. The legacy forms below carry no API level requirement, so they\n // are used wherever they can express the tag.\n if (script !== undefined || (region !== undefined && /^\\d/.test(region))) {\n return [\n 'b',\n language.toLowerCase(),\n toScriptCase(script),\n region?.toUpperCase(),\n ]\n .filter((part) => part !== undefined && part !== '')\n .join('+');\n }\n\n return region === undefined\n ? language.toLowerCase()\n : `${language.toLowerCase()}-r${region.toUpperCase()}`;\n}\n\n/** Returns a script subtag in title case, so `hans` and `HANS` give `Hans`. */\nfunction toScriptCase(script: string | undefined): string | undefined {\n return script === undefined\n ? undefined\n : script[0].toUpperCase() + script.slice(1).toLowerCase();\n}\n"],"mappings":";;;;;;;AAWA,SAAgB,uBAAuB,QAAwB;AAC7D,KAAI;AACF,MAAI,KAAK,OAAO,OAAO;SACjB;AACN,SAAO;;CAST,MAAM,CAAC,UAAU,GAAG,QAAQ,OAAO,MAAM,IAAI;CAC7C,MAAM,SAAS,KAAK,MAAM,SAAS,gBAAgB,KAAK,KAAK,CAAC;CAC9D,MAAM,SAAS,KAAK,MACjB,SAAS,gBAAgB,KAAK,KAAK,IAAI,UAAU,KAAK,KAAK,CAC7D;AAKD,KAAI,WAAW,KAAA,KAAc,WAAW,KAAA,KAAa,MAAM,KAAK,OAAO,CACrE,QAAO;EACL;EACA,SAAS,aAAa;EACtB,aAAa,OAAO;EACpB,QAAQ,aAAa;EACtB,CACE,QAAQ,SAAS,SAAS,KAAA,KAAa,SAAS,GAAG,CACnD,KAAK,IAAI;AAGd,QAAO,WAAW,KAAA,IACd,SAAS,aAAa,GACtB,GAAG,SAAS,aAAa,CAAC,IAAI,OAAO,aAAa;;;AAIxD,SAAS,aAAa,QAAgD;AACpE,QAAO,WAAW,KAAA,IACd,KAAA,IACA,OAAO,GAAG,aAAa,GAAG,OAAO,MAAM,EAAE,CAAC,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PACKAGE_VERSION = "2.23.
|
|
1
|
+
export declare const PACKAGE_VERSION = "2.23.2";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","names":[],"sources":["../../src/generated/version.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\nexport const PACKAGE_VERSION = '2.23.
|
|
1
|
+
{"version":3,"file":"version.js","names":[],"sources":["../../src/generated/version.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\nexport const PACKAGE_VERSION = '2.23.2';\n"],"mappings":";AACA,MAAa,kBAAkB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gt",
|
|
3
|
-
"version": "2.23.
|
|
3
|
+
"version": "2.23.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"bin": "bin/main.js",
|
|
6
6
|
"files": [
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"@generaltranslation/format": "0.1.9",
|
|
118
118
|
"@generaltranslation/icu": "0.1.2",
|
|
119
119
|
"@generaltranslation/python-extractor": "0.2.57",
|
|
120
|
-
"@generaltranslation/supported-locales": "2.1.
|
|
120
|
+
"@generaltranslation/supported-locales": "2.1.39",
|
|
121
121
|
"@generaltranslation/vue-extractor": "0.1.17",
|
|
122
122
|
"generaltranslation": "9.5.3",
|
|
123
123
|
"gt-remark": "1.0.12"
|