Skip to content

Commit

Permalink
fixed names file location
Browse files Browse the repository at this point in the history
  • Loading branch information
s-a committed Jun 11, 2017
1 parent 41f92b0 commit 729f661
Show file tree
Hide file tree
Showing 23 changed files with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/i18n/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,19 @@
if (!result) {
result = this.try(this.culture.split("-")[0]);
}

if (!result) {
result = this.try("en-GB");
}

if (!result) {
result = this.try("en");
}

if (!result) {
throw new Error("i18n module not found.");
}

return result;
};

Expand All @@ -50,9 +53,15 @@
if (!result) {
result = this._i18n[this.i18nModuleName][this.culture.split("-")[0]];
}

if (!result) {
result = this._i18n[this.i18nModuleName]["en-GB"];
}

if (!result) {
result = this.try("en");
}

return result;
};

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 729f661

Please sign in to comment.