Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
jamuhl committed Nov 22, 2019
1 parent e8863e8 commit 0445154
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 1.0.0

- Return undefined when unable to get bundle in getResource [5](https://github.com/i18next/i18next-fluent/pull/5)

### 0.0.4

- Fix using i18next's fallback language support [3](https://github.com/i18next/i18next-fluent/pull/3)
Expand Down
2 changes: 1 addition & 1 deletion i18nextFluent.js
Original file line number Diff line number Diff line change
Expand Up @@ -2186,7 +2186,7 @@
getResource(lng, ns, key, options) {
let bundle = this.store.getBundle(lng, ns);
const useKey = key.indexOf('.') > -1 ? key.split('.')[0] : key;
if (!bundle) return key;
if (!bundle) return undefined;
return bundle.getMessage(useKey);
}

Expand Down
2 changes: 1 addition & 1 deletion i18nextFluent.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "i18next-fluent",
"version": "0.0.4",
"version": "1.0.0",
"description": "i18nFormat plugin to use fluent format with i18next",
"main": "./index.js",
"jsnext:main": "dist/es/index.js",
Expand Down

0 comments on commit 0445154

Please sign in to comment.