Hello everyone I exported file .po and add to i18n folder, I am working in owl and I can not translate as expected, here is my code
app.xml
div t-name="HeaderContent"
Human Resource
div
i18n/language.po
#. module: hr_management
#. openerp-web
#: code:addons/hr_management/static/src/xml/app.xml:0
#, python-format
msgid " Human Resource "
msgstr "The translate of word 'Human Resource' "
app.js
odoo.define("web.web_client", function(require) {
"use strict";
const { Component, useState, mount } = owl;
function app() {
class HeaderContent extends Component {
}
mount(HeaderContent , { target: document.body });
}
async function start() {
let templates;
templates = await owl.utils.loadFile( " hr_management/static/src/xml/app.xml");
const env = { qweb: new owl.QWeb({ templates }) };
owl.Component.env = env;
await owl.utils.whenReady();
app();
}
start();
});
Hello,
I have the same problem to translate my component. (In v15)
Do you found solutions ?
Thanks