Skip to content

Instantly share code, notes, and snippets.

@jasonmit
Created August 14, 2016 09:48
Show Gist options
  • Save jasonmit/5fa696b9c5c7a2ca81b04a9a77458954 to your computer and use it in GitHub Desktop.
Save jasonmit/5fa696b9c5c7a2ca81b04a9a77458954 to your computer and use it in GitHub Desktop.
Router.map({
needs: ['i18n']
}, function({ i18n }) {
this.route('index', { path: '/' });
this.route('about', { path: i18n.t('urls.about') });
this.route('contact_us', { path: i18n.t('urls.contact_us') });
});
Router.map(function() {
let i18n = this.service('i18n');
this.route('index', { path: '/' });
this.route('about', { path: i18n.t('urls.about') });
this.route('contact_us', { path: i18n.t('urls.contact_us') });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment