Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
4689 Visninger

I translated some products name to Arabic. And I am trying to get that Arabic translation in JS. Unfortunately, I getting the translations in *.PO files only.


Here is the code:

     var translationDataBase = new translation.TranslationDataBase();

    var modules = odoo._modules;

    translationDataBase.load_translations(session, modules, lang).done(function() {

      var _t = translationDataBase.build_translation_function();

        dfd.resolve(_t);

        self.product.translated_string=_t('Back');

        console.log('_t',_t);

    });

How can I get product's translation? 

Output in console:




Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
2
jul. 24
15878
4
jul. 24
6830
2
jul. 24
4087
4
jun. 24
25515
3
apr. 24
2399