diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 95ff90c0..0bddb9d2 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -4,6 +4,10 @@ on: push: branches: - main + paths: + - docs/* + - .github/workflows/docs.yml + jobs: deploy: runs-on: ubuntu-latest diff --git a/.github/workflows/iobroker-localization.yml b/.github/workflows/iobroker-localization.yml index 413a30a3..1b116cdc 100644 --- a/.github/workflows/iobroker-localization.yml +++ b/.github/workflows/iobroker-localization.yml @@ -25,9 +25,8 @@ jobs: - name: Gen ioBroker localization file continue-on-error: false run: | - cd apps/nspanel-lovelace-ui/luibackend - python ../../../HMI/code_gen/localization/iobroker.py - mv ioBroker_NSPanel_locales.json ../../../ioBroker/ioBroker_NSPanel_locales.json + python HMI/code_gen/localization/iobroker.py + mv ioBroker_NSPanel_locales.json ioBroker/ioBroker_NSPanel_locales.json - uses: stefanzweifel/git-auto-commit-action@v4 with: diff --git a/HMI/code_gen/localization/iobroker.py b/HMI/code_gen/localization/iobroker.py index d7b4fbe0..7672b073 100644 --- a/HMI/code_gen/localization/iobroker.py +++ b/HMI/code_gen/localization/iobroker.py @@ -35,9 +35,9 @@ def build_locale_filestring(locale): locale = locale.split("_")[0] filename = f"{locale}.json" - dir_path = os.path.dirname(os.path.realpath(__file__)) - path_frontend_file = os.path.join(dir_path, "translations", "frontend", filename) - path_backend_file = os.path.join(dir_path, "translations", "backend" , filename) + dir_path = os.getcwd() + path_frontend_file = os.path.join(dir_path, "apps", "nspanel-lovelace-ui", "luibackend", "translations", "frontend", filename) + path_backend_file = os.path.join(dir_path, "apps", "nspanel-lovelace-ui", "luibackend", "translations", "backend" , filename) return path_frontend_file, path_backend_file def lookup(path_frontend_file, path_backend_file, lookupstr):