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
The parsing of the json file seems to fail if there's a trailing newline and doesn't seem to consult the finalNewline option. I recognize the finalNewline is likely an output option, but would be great if we could have an option to control if it's allowed in the source translation files.
it's pretty common on *nix systems, editor configs, and IDE formatters to insert a trailing newline.
I actually had to remove --check from my command to format so I could find the issue.
The parsing of the json file seems to fail if there's a trailing newline and doesn't seem to consult the
finalNewline
option. I recognize the finalNewline is likely an output option, but would be great if we could have an option to control if it's allowed in the source translation files.it's pretty common on *nix systems, editor configs, and IDE formatters to insert a trailing newline.
I actually had to remove
--check
from my command to format so I could find the issue.npx sync-i18n --files '**/src/i18n/*.json' --primary "en-us" --space 4 --finalNewline true --check
The text was updated successfully, but these errors were encountered: