Skip to content

Commit

Permalink
build 2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rehhouari committed Oct 22, 2021
1 parent 7351a0a commit 3c3f4d6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
6 changes: 4 additions & 2 deletions packages/main/dist/cdn.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@
let message2 = name.split(".").reduce((o, i) => o[i], this.messages[this.locale]);
} catch (error) {
console.warn("AlpineI18n: key " + name + " not found. Using fallbackLocale.");
if (!message && this.fallbackLocale.length) {
message = name.split(".").reduce((o, i) => o[i], this.messages[this.fallbackLocale]);
if (this.fallbackLocale.length) {
let message2 = name.split(".").reduce((o, i) => o[i], this.messages[this.fallbackLocale]);
} else {
return name;
}
}
for (const key in vars) {
Expand Down
2 changes: 1 addition & 1 deletion packages/main/dist/cdn.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions packages/main/dist/module.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ var AlpineI18n = {
let message2 = name.split(".").reduce((o, i) => o[i], this.messages[this.locale]);
} catch (error) {
console.warn("AlpineI18n: key " + name + " not found. Using fallbackLocale.");
if (!message && this.fallbackLocale.length) {
message = name.split(".").reduce((o, i) => o[i], this.messages[this.fallbackLocale]);
if (this.fallbackLocale.length) {
let message2 = name.split(".").reduce((o, i) => o[i], this.messages[this.fallbackLocale]);
} else {
return name;
}
}
for (const key in vars) {
Expand Down
6 changes: 4 additions & 2 deletions packages/main/dist/module.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ var AlpineI18n = {
let message2 = name.split(".").reduce((o, i) => o[i], this.messages[this.locale]);
} catch (error) {
console.warn("AlpineI18n: key " + name + " not found. Using fallbackLocale.");
if (!message && this.fallbackLocale.length) {
message = name.split(".").reduce((o, i) => o[i], this.messages[this.fallbackLocale]);
if (this.fallbackLocale.length) {
let message2 = name.split(".").reduce((o, i) => o[i], this.messages[this.fallbackLocale]);
} else {
return name;
}
}
for (const key in vars) {
Expand Down

0 comments on commit 3c3f4d6

Please sign in to comment.