intor 2.4.9 → 2.4.10
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.
|
@@ -29,8 +29,13 @@ function useNavigation() {
|
|
|
29
29
|
});
|
|
30
30
|
return goto(outboundResult.destination, rest);
|
|
31
31
|
}
|
|
32
|
+
function href(url) {
|
|
33
|
+
const { destination } = resolveOutbound(config, get(currentLocale), page.url.pathname, { destination: url });
|
|
34
|
+
return destination;
|
|
35
|
+
}
|
|
32
36
|
return {
|
|
33
37
|
goto: goto$1,
|
|
38
|
+
href,
|
|
34
39
|
};
|
|
35
40
|
}
|
|
36
41
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intor",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.10",
|
|
4
4
|
"description": "The i18n library for modern JavaScript",
|
|
5
5
|
"author": "Yiming Liao",
|
|
6
|
-
"homepage": "https://
|
|
6
|
+
"homepage": "https://intor.dev",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/yiming-liao/intor"
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"keywords": [
|
|
19
19
|
"i18n",
|
|
20
20
|
"internationalization",
|
|
21
|
-
"translation",
|
|
22
21
|
"typescript",
|
|
22
|
+
"type-safe",
|
|
23
|
+
"i18n-cli",
|
|
24
|
+
"framework-agnostic",
|
|
25
|
+
"ssr",
|
|
26
|
+
"runtime",
|
|
23
27
|
"node",
|
|
24
|
-
"
|
|
25
|
-
"react",
|
|
26
|
-
"translator",
|
|
27
|
-
"i18n core",
|
|
28
|
-
"custom messages"
|
|
28
|
+
"edge"
|
|
29
29
|
],
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"type": "module",
|