• I am using Vue in front end and created .pot file successfully without any issue. Now need to generate .json file out of the .po file.

    When I run wp i18n make-json doesn’t generate the .json file from the existing .po file. It’s because the source file is .vue

    .po file example below
    #: front/src/module/advanced-tools/component/sh-xss-protection.vue:27
    msgid “If a cross-site scripting attack is detected, the browser will sanitize the page (remove the unsafe parts).”
    msgstr “”

    If I change the extension to *.js then make-json is able to generate the .json file for only that string. Any idea if I can make it work for .vue file extensions?

    Regards

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘make-json skipping the .vue file extensions’ is closed to new replies.