Angularjs Gettext Translate from mongodb database

123 views Asked by At

I am using Angularjs gettext in my AngularJS Full-Stack generator Project.

It is working very good for static text. But I need to capture data from the user in multi-language which I'll store in MongoDB database.

For MongoDB multilanguage schema, I used mongoose-intl.

Is there any way we can use gettext to translate data for dynamic text.

My MongoDB schema looks like following:

{
     _id: '...',
     name: {
         en: 'Name in english',
         de: 'Name in German',
         fr: 'Name in French'
     }
}
0

There are 0 answers