diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d821add2d..015dc6e3b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -132,7 +132,7 @@ jobs: run: echo "::add-matcher::.github/problem-matchers/generic.json" - name: Build extension package - run: xvfb-run make pack + run: xvfb-run make ONLY_RELEASE_LOCALES=true pack - name: Upload extension package as artifact id: upload diff --git a/Makefile b/Makefile index 2980e65f6..0bba47ef8 100755 --- a/Makefile +++ b/Makefile @@ -64,7 +64,27 @@ schemas: $(SCHEMAS_COMPILED) # Locales -LOCALES := $(wildcard po/*.po) +LOCALES_RELEASE := \ + po/cs.po \ + po/de.po \ + po/el.po \ + po/fr.po \ + po/nb_NO.po \ + po/pl.po \ + po/pt.po \ + po/ru.po \ + po/zh_CN.po + +LOCALES_ALL := $(wildcard po/*.po) + +ONLY_RELEASE_LOCALES := no + +ifeq ($(call is-true,$(ONLY_RELEASE_LOCALES)),1) +LOCALES := $(LOCALES_RELEASE) +else +LOCALES := $(LOCALES_ALL) +endif + LOCALE_SOURCE_PATTERN := po/%.po LOCALE_COMPILED_PATTERN := locale/%/LC_MESSAGES/$(EXTENSION_UUID).mo LOCALES_COMPILED := $(patsubst $(LOCALE_SOURCE_PATTERN),$(LOCALE_COMPILED_PATTERN),$(LOCALES))