Skip to content

Commit a5c4c4a

Browse files
authored
Merge pull request #61 from Tazer/trans-not-found-default-value
added defaultValue into onTranslationNotFound method
2 parents 0a91334 + 949e020 commit a5c4c4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vuex-i18n-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ VuexI18nPlugin.install = function install(Vue, store, config) {
167167
}
168168

169169
// invoke a method if a translation is not found
170-
let asyncTranslation = onTranslationNotFound(locale, key);
170+
let asyncTranslation = onTranslationNotFound(locale, key, defaultValue);
171171

172172
// resolve async translations by updating the store
173173
if (asyncTranslation) {

0 commit comments

Comments
 (0)