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 90342dc commit f1984a5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
5 changes: 3 additions & 2 deletions packages/main/dist/cdn.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@
}
},
t(name, vars) {
let message = name;
try {
let message2 = name.split(".").reduce((o, i) => o[i], this.messages[this.locale]);
message = name.split(".").reduce((o, i) => o[i], this.messages[this.locale]);
} catch (error) {
console.warn("AlpineI18n: key " + name + " not found. Using fallbackLocale.");
if (this.fallbackLocale.length) {
let message2 = name.split(".").reduce((o, i) => o[i], this.messages[this.fallbackLocale]);
message = name.split(".").reduce((o, i) => o[i], this.messages[this.fallbackLocale]);
} else {
return name;
}
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.

5 changes: 3 additions & 2 deletions packages/main/dist/module.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ var AlpineI18n = {
}
},
t(name, vars) {
let message = name;
try {
let message2 = name.split(".").reduce((o, i) => o[i], this.messages[this.locale]);
message = name.split(".").reduce((o, i) => o[i], this.messages[this.locale]);
} catch (error) {
console.warn("AlpineI18n: key " + name + " not found. Using fallbackLocale.");
if (this.fallbackLocale.length) {
let message2 = name.split(".").reduce((o, i) => o[i], this.messages[this.fallbackLocale]);
message = name.split(".").reduce((o, i) => o[i], this.messages[this.fallbackLocale]);
} else {
return name;
}
Expand Down
5 changes: 3 additions & 2 deletions packages/main/dist/module.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ var AlpineI18n = {
}
},
t(name, vars) {
let message = name;
try {
let message2 = name.split(".").reduce((o, i) => o[i], this.messages[this.locale]);
message = name.split(".").reduce((o, i) => o[i], this.messages[this.locale]);
} catch (error) {
console.warn("AlpineI18n: key " + name + " not found. Using fallbackLocale.");
if (this.fallbackLocale.length) {
let message2 = name.split(".").reduce((o, i) => o[i], this.messages[this.fallbackLocale]);
message = name.split(".").reduce((o, i) => o[i], this.messages[this.fallbackLocale]);
} else {
return name;
}
Expand Down

0 comments on commit f1984a5

Please sign in to comment.