diff --git a/.github/workflows/build_container.yml b/.github/workflows/build_container.yml index 1e118a1f..459c12c7 100644 --- a/.github/workflows/build_container.yml +++ b/.github/workflows/build_container.yml @@ -2,8 +2,10 @@ name: Create and publish a container image on: push: + branches: + - main tags: - - 'v*' + - v* jobs: build-and-push-image: diff --git a/javascript/localization.js b/javascript/localization.js index 9f13d6fc..21b3b333 100644 --- a/javascript/localization.js +++ b/javascript/localization.js @@ -81,9 +81,12 @@ function refresh_style_localization() { } function refresh_aspect_ratios_label(value) { - label = document.querySelector('#aspect_ratios_accordion div span[data-original-text="Aspect Ratios"]') - translation = getTranslation("Aspect Ratios") - label.textContent = translation + " " + htmlDecode(value) + label = document.querySelector('#aspect_ratios_accordion div span[data-original-text="Aspect Ratios"]'); + translation = getTranslation("Aspect Ratios"); + if (typeof translation == "undefined") { + translation = "Aspect Ratios"; + } + label.textContent = translation + " " + htmlDecode(value); } function localizeWholePage() {