Skip to content

Commit

Permalink
feat(Locale): add localization support
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowApex committed Jan 28, 2024
1 parent 54d1c77 commit 095e336
Show file tree
Hide file tree
Showing 16 changed files with 2,237 additions and 16 deletions.
19 changes: 19 additions & 0 deletions assets/locale/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# https://weblate.org/en/

ALL_LOCALES := en_US.po es_MX.po fr_FR.po

# Update all locales from the 'messages.pot' template
.PHONY: all
all: $(ALL_LOCALES)

# Generate a new locale file from the template
.PHONY: generate
generate:
ifndef LOCALE
$(error LOCALE not specified to generate)
endif
msginit --no-translator --input=messages.pot --locale=$(LOCALE)

# Update the locale from the 'messages.pot' template
$(ALL_LOCALES): messages.pot
msgmerge --update --backup=none $@ $<
Loading

0 comments on commit 095e336

Please sign in to comment.