Skip to content

questions for .po file generation #6

Description

@cch5ng

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
    • "0 : [object Object]"

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions