Skip to content

Hot reload is not injecting new translations #212

@AleeeKoi

Description

@AleeeKoi

Hello,
I'm using this plugin with laravl inertia (starterkit vue).

I Have registered an additionalLangPaths and the translations works fine when I start a new dev instance executing npm run dev.

If I add a new translation in my vue file, for esample
{{ $('test.new.key') }}

And then I create the translation in the additional file, for example:

<?php

// File /path/en/test.php

return {
  'new' => [
    'key' => 'Lorem ipsum',
  ]
}

And finally saving all the files, the vua page rendered show test.new.key instead of the correct translation.

To see it, I must kill my dev process and restart it. After that the translated text appears.

How can I make the translations changes live?

Thanks

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