mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-03-18 21:50:33 +01:00
1.0 KiB
1.0 KiB
Translation
Currently the admin page, account creation form and emails can be translated. Strings are defined in lang/<admin/form/email>/<country-code>.json (country code as in en-us, fr-fr, e.g). You can see the existing ones here.
Make sure to define name in the meta section, and you can optionally add an author value there as well. If you can, make a pull request with your new file. If not, email me or create an issue.
Code
I use 4 spaces for indentation. Go should ideally be formatted with goimports and/or gofmt. I don't use a formatter on typescript, so don't worry about that.
If you need to test your changes:
make debugwill build everything, and include sourcemaps for typescript. This should be the first thing you run.make compilecompiles go intobuild/jfa-go.make ts-debugwill compile typescript w/ sourcemaps intobuild/data/web/js.make copywill copy css, html, language and static files intobuild/data.