Skip to content

Commit

Permalink
fix(relativeTime): fix fallbackLng reading
Browse files Browse the repository at this point in the history
reads the fallbackLng now from the i18next instance instead of the i18n service

fixes issue #125
  • Loading branch information
zewa666 committed Jul 21, 2016
1 parent c095e73 commit ffb0dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/relativeTime.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class RelativeTime {
setup(locales) {
let trans = translations.default || translations;
let key = locales && locales.newValue ? locales.newValue : this.service.getLocale();
let fallbackLng = this.service.fallbackLng;
let fallbackLng = this.service.i18next.fallbackLng;
let index = 0;

if ((index = key.indexOf('-')) >= 0) { // eslint-disable-line no-cond-assign
Expand Down

0 comments on commit ffb0dcb

Please sign in to comment.