namlook / ember-eureka

Ember client for Eureka applications
MIT License
3 stars 0 forks source link

The index should display only the document which are written in a specific language #32

Open namlook opened 10 years ago

namlook commented 10 years ago

Or at least, allow to facet by language. To tell the system what field is representing the language of the document, add langField on model.

If queryCurrentLang then query only the document which match the current language (the lang field is specified on langField) :

{
  BlogPost: {
    i18n: {
      langField: 'lang',
      queryCurrentLang: true
    },
    schema: {
      lang: {type: string}
    }
}