revojs 0.0.45 → 0.0.46
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/index.js +1 -2
- package/dist/jsx/index.js +0 -1
- package/dist/presets/deno.js +0 -1
- package/dist/presets/node.js +0 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -801,12 +801,11 @@ const createLocale = (options) => {
|
|
|
801
801
|
const locale = createState(options.defaultLocale);
|
|
802
802
|
const messages = createState();
|
|
803
803
|
const registerLocaleContext = async (scope) => {
|
|
804
|
-
const { inputs, navigator
|
|
804
|
+
const { inputs, navigator } = useRouter(scope);
|
|
805
805
|
const fetch$1 = async () => {
|
|
806
806
|
if (options.input) {
|
|
807
807
|
const input = inputs.value?.[options.input];
|
|
808
808
|
if (input && input in options.locales) locale.value = input;
|
|
809
|
-
else navigate("/" + (locale.value ?? ""));
|
|
810
809
|
}
|
|
811
810
|
if (locale.value) {
|
|
812
811
|
const target = options.locales[locale.value];
|
package/dist/jsx/index.js
CHANGED
package/dist/presets/deno.js
CHANGED
package/dist/presets/node.js
CHANGED