chiefonboarding / ChiefOnboarding

Free and open-source employee onboarding platform. Onboard new hires through Slack or the web portal.
https://chiefonboarding.com
GNU Affero General Public License v3.0
640 stars 119 forks source link

Contributing with new language #409

Open kjette opened 8 months ago

kjette commented 8 months ago

Hello,

Just wanted to drop a comment regarding creating a new lang file, we used the following command:

docker-compose run --rm app django-admin makemessages -l sv

and gives the following output:

# docker-compose run --rm app django-admin makemessages -l sv
Creating chief_test_app_run ... done
processing locale sv

But I searched everywhere, and seem not to find any files that should be created.

The "app" part from the docker-compose.yml file is as follows:

app: image: chiefonboarding/chiefonboarding:latest restart: always volumes:

Is it needed to specify some more volumes specific to this? We are running this behind our own caddy btw, so that is why we used your docker-compose without caddy.

GDay commented 8 months ago

Hi! Adding a language should be done locally (development setup) and then create a PR with the translations, but you could use DeepL or similar to automate that.

You can't really run the command in production as it would create an empty language file and it therefore doesn't really do much (besides that, the translation needs to be added to the settings to be able to select it).

Let me know if you have questions.