vue-translation-manager icon indicating copy to clipboard operation
vue-translation-manager copied to clipboard

different key seperator

Open ghost opened this issue 3 years ago • 2 comments

how can i choose another seperator for the keys - i have the problem that the default seperator '\' causes a lint error. Example:

generated in vue component: <div class="n-view-title">{{ $t('src\components\administration\user\index.title') }}</div>

generated in locals/en.json: { "src\\components\\administration\\user\\index": { "title": "New user" } }

this works of course but cause my linter to throw errors. A seperator like '.' instead of '\' would also work!

How can i change this?

ghost avatar Dec 14 '21 21:12 ghost

how did you solve this problem?

MurtazinEduard avatar Jan 10 '22 12:01 MurtazinEduard

i just changed the code for myself:

in the bin.js file: line 180: var key = await manager.getSuggestedKey(filePath, str.string, usedKeys) i used the standard replace function to create a . instead of \

this did it for me..

ghost avatar Jan 10 '22 13:01 ghost