Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Explanation for CSV format #22

Open
jbt-cii opened this issue Feb 24, 2021 · 2 comments
Open

[Suggestion] Explanation for CSV format #22

jbt-cii opened this issue Feb 24, 2021 · 2 comments

Comments

@jbt-cii
Copy link

jbt-cii commented Feb 24, 2021

Hello,

Thank you for your package, it is very helpful.

I make a suggestion: it would be nice to explain a little bit some things about the CSV format (and maybe for others formats).

I made several tests to understand what it was possible to do with CSV format.

So I know now that CSV works only:

  • with only comma separator (semicolon or other separator are not accepted)

  • with non-printable control character CRLF (Carriadge Return and Line Feed) and not only LF (Line Feed)

  • with a specific header : str,en_US,fr_FR, and so on

  • with or without double quotes

  • the key can be a keyword or simply the english version... we can mix the 2 ways, for instance:

"str","en_US","fr_FR"
"button to change the language into french","button to change the language into french","bouton pour passer l'application en langue anglaise"
"form.error.client_user.not_valid","please enter a valid user","merci de saisir un utilisateur valide"

  • and when we change a translation, we need to rebuild the whole application

Personally, with each modification, I redo a sort on the CSV file according to the key to reorder everything in alphabetical order to identify possible duplicates.
Do not forget to put the header back in the 1st line afterwards.

@jakubkrapiec
Copy link

I agree, at least a CRLF instead of LF warning would be appreciated.

@ben-xD
Copy link

ben-xD commented Feb 13, 2022

More information is always welcome, but I found that the example app has some files, including a csv.

Folder: https://github.com/aissat/easy_localization/tree/master/example/resources/langs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants