Add commands, use em

This commit is contained in:
3wc
2025-08-04 14:37:09 +01:00
parent 0145f6a4ad
commit cd59047bbf
3 changed files with 26 additions and 2 deletions

View File

@ -1,7 +1,22 @@
# translations-test
## Install and run
```shell
go get
go run main.go
LC_MESSAGES=es_ES go run main.go
```
## Update template
```
xgotext -in . -out locales/
```
## Update translations from template
```shell
msgmerge --update locales/es_ES/LC_MESSAGES/default.po locales/default.pot
```

View File

@ -4,5 +4,10 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: main.go:21
msgid "Goodbye World"
msgstr ""
#: main.go:19
msgid "Hello World"
msgstr "Hola Mundo"

View File

@ -2,8 +2,8 @@ msgid ""
msgstr ""
"PO-Revision-Date: 2025-08-04 13:18+0000\n"
"Last-Translator: 3wordchant <3wc.coopcloud@doesthisthing.work>\n"
"Language-Team: Portuguese <https://translate.coopcloud.tech/projects/"
"co-op-cloud/translations-test/pt/>\n"
"Language-Team: Portuguese <https://translate.coopcloud.tech/projects/co-op-"
"cloud/translations-test/pt/>\n"
"Language: pt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -11,6 +11,10 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 5.12.2\n"
#: main.go:21
msgid "Goodbye World"
msgstr ""
#: main.go:19
msgid "Hello World"
msgstr "Hola mundo"