hi, when I run webpack, I see an undefined.po file gets generated at the root of my project.
- the contents of the .po file look like
this is what the contents of my gettext.config.js looks like:
module.exports = {
methods: ['$translate', 't'],
header: [{
'Project-Id-Version': 'PROJECT VERSION',
'Report-Msgid-Bugs-To': 'EMAIL@ADDRESS',
'Last-Translator': 'FULL NAME <EMAIL@ADDRESS>',
'Language': 'es',
'Language-Team': 'es <LL@li.org>',
'Plural-Forms': 'nplurals=2; plural=(n != 1)',
'MIME-Version': '1.0',
'Content-Type': 'text/plain; charset=utf-8',
'Content-Transfer-Encoding': '8bit'
}]
};
I'm not clear if I'm setting the methods property correctly. I'm trying to use the i18n.t() function for translations. thanks.
- is root the default location where .po files will get built and how could I change that?
- can I build multiple .po files at once?
- how should I set the .po file name
hi, when I run webpack, I see an undefined.po file gets generated at the root of my project.
this is what the contents of my gettext.config.js looks like:
I'm not clear if I'm setting the methods property correctly. I'm trying to use the i18n.t() function for translations. thanks.