Valérianne Dashie c350fc476a
Add script
4 months ago
README.md Add script 4 months ago
i18n.py Add script 4 months ago

README.md

Unknown i18n

Works with:

  • https://github.com/Unknwon/i18n
  • https://go-macaron.com/docs/middlewares/i18n

A small python script to help dealing with locales files

Edit the script with the right config on top.

Sample output:

== Parsing 2 INI local files
= conf/locale/locale_en-US.ini
= conf/locale/locale_fr-FR.ini

= Parsing cmd/cmd.go
= Parsing cmd/web.go
= Parsing models/error.go
= Parsing routers/gitxt/gitxt.go

= Unmatched strings:
From file 'routers/gitxt/gitxt.go' with ini locale 'conf/locale/locale_en-US.ini', missing [gitxt_new] error_plz_correct
From file 'routers/gitxt/gitxt.go' with ini locale 'conf/locale/locale_fr-FR.ini', missing [gitxt_new] error_plz_correct