pass bo_client to ember 2.8, adjust for the hack around the aupac-typeahead bug in 2.8 (c.f. https://github.com/aupac/ember-aupac-typeahead/issues/23)
export default {
name: 'i18n',
initialize: function( instance ) {
instance.lookup('service:i18n').set('locale', calculateLocale());
}
};
function calculateLocale() {
// whatever you do to pick a locale for the user:
return navigator.language || navigator.userLanguage || 'fr-FR';
}