i18n4go icon indicating copy to clipboard operation
i18n4go copied to clipboard

Move generated i18n_init.go and i18n_resources.go into its own package

Open Aerex opened this issue 7 months ago • 0 comments

Context

Currently when running the rewrite-package the generated go files will use the same package as the package of the source go file. For instance, if the source files are in the main package so will the i18n_resources.go and i18n_init.go files.

This is fine but most projects will have their localizations files in its own dedicated folder. We should look into support generating the files in a different folder and package (eg. i18n)

Aerex avatar Jul 12 '24 17:07 Aerex