Created
August 14, 2016 09:48
-
-
Save jasonmit/5fa696b9c5c7a2ca81b04a9a77458954 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') }); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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