@nsail/stack 0.1.981 → 0.1.986
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/dist/strings.js +1 -1
- package/package.json +1 -1
package/dist/strings.js
CHANGED
|
@@ -7,7 +7,7 @@ import mudEs from "./catalogs/strings.es.json";
|
|
|
7
7
|
// renderer draws it.
|
|
8
8
|
const stackCatalogs = { en: mudBase, es: { ...mudBase, ...mudEs } };
|
|
9
9
|
export function stackStrings(language) {
|
|
10
|
-
return stackCatalogs[language] ?? stackCatalogs.en;
|
|
10
|
+
return stackCatalogs[language] ?? stackCatalogs[language.split("-")[0].toLowerCase()] ?? stackCatalogs.en;
|
|
11
11
|
}
|
|
12
12
|
const token = /{([A-Za-z0-9_]+)}/g;
|
|
13
13
|
function fill(text, args) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nsail/stack",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.986",
|
|
4
4
|
"description": "NSail's vendor-free client half: sends messages from the descriptors an Sdk generates, speaks the catalog, and holds the hooks a page reads with.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|