跳至內容
選單
此問題已被標幟
4695 瀏覽次數

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:




頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
7月 24
15884
4
7月 24
6836
2
7月 24
4092
4
6月 24
25528
3
4月 24
2404