You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I'm using vue-i18n-extract in my project.
First of all, thank you for creating such an awesome project!
I discovered that vue-i18n-extract cannot detect or collect missing keys when using CRLF end-of-line sequences.
Upon examining the source code, I found that the componentRegExp inside the extractComponentMatches function only detects the LF end-of-line sequence.
The regex should detect missing keys in the i18n-t component, even when CRLF end-of-line sequences are used.
<i18n-ttag="p"keypath="The grass is always greener on the other side of the fence from {username}"class="message"
>
<template #username> {{ username }} </template>
</i18n-t>
Actual behavior
The current regex does not detect or collect missing keys when the i18n-t component uses CRLF end-of-line sequences.
Steps to reproduce
Set singleAttributePerLine to true in your .prettierrc file.
Change the end-of-line sequence to CRLF.
Create an i18n-t component with multiple props and attributes.
Run the vue-i18n-extract report.
You can try with this setup with the following sandbox
npm run vue-i18n-extract
The text was updated successfully, but these errors were encountered:
Hello! I'm using
vue-i18n-extract
in my project.First of all, thank you for creating such an awesome project!
I discovered that
vue-i18n-extract
cannot detect or collect missing keys when usingCRLF
end-of-line sequences.Upon examining the source code, I found that the
componentRegExp
inside theextractComponentMatches
function only detects the LF end-of-line sequence.I tried the following regex, which successfully detects the CRLF end-of-line sequence.
Expected behavior
The regex should detect missing keys in the
i18n-t
component, even whenCRLF
end-of-line sequences are used.Actual behavior
The current regex does not detect or collect missing keys when the
i18n-t
component usesCRLF
end-of-line sequences.Steps to reproduce
singleAttributePerLine
totrue
in your .prettierrc file.CRLF
.i18n-t
component with multiple props and attributes.You can try with this setup with the following sandbox
The text was updated successfully, but these errors were encountered: