I am trying to use Aurelia-i18n but I am kind of stuck at the initial configuration step. I did up to this point (https://github.com/aurelia/i18n#how-to-install-this-plugin) but I am getting this error when I ran my application:
frameworkConfig.globalResources is not a function
main.js
import {I18N} from 'aurelia-i18n';
export function configure(aurelia) {
aurelia.use
.standardConfiguration()
.developmentLogging()
.plugin('aurelia-validation')
.plugin('aurelia-i18n', (instance) => {
instance.setup({
resGetPath : 'locale/__lng__/__ns__.json',
lng : 'en',
attributes : ['t','i18n'],
getAsync : true,
sendMissing : false,
fallbackLng : 'en',
debug : false
});
});
aurelia.start().then(a => a.setRoot());
}
locale/en/translation.json
{
"hello": "hello"
}
What am I doing wrong?