mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-20 14:37:01 +01:00
change path
This commit is contained in:
4
.github/workflows/docs.yml
vendored
4
.github/workflows/docs.yml
vendored
@@ -4,6 +4,10 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
paths:
|
||||||
|
- docs/*
|
||||||
|
- .github/workflows/docs.yml
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
5
.github/workflows/iobroker-localization.yml
vendored
5
.github/workflows/iobroker-localization.yml
vendored
@@ -25,9 +25,8 @@ jobs:
|
|||||||
- name: Gen ioBroker localization file
|
- name: Gen ioBroker localization file
|
||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
run: |
|
run: |
|
||||||
cd apps/nspanel-lovelace-ui/luibackend
|
python HMI/code_gen/localization/iobroker.py
|
||||||
python ../../../HMI/code_gen/localization/iobroker.py
|
mv ioBroker_NSPanel_locales.json ioBroker/ioBroker_NSPanel_locales.json
|
||||||
mv ioBroker_NSPanel_locales.json ../../../ioBroker/ioBroker_NSPanel_locales.json
|
|
||||||
|
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -35,9 +35,9 @@ def build_locale_filestring(locale):
|
|||||||
locale = locale.split("_")[0]
|
locale = locale.split("_")[0]
|
||||||
|
|
||||||
filename = f"{locale}.json"
|
filename = f"{locale}.json"
|
||||||
dir_path = os.path.dirname(os.path.realpath(__file__))
|
dir_path = os.getcwd()
|
||||||
path_frontend_file = os.path.join(dir_path, "translations", "frontend", filename)
|
path_frontend_file = os.path.join(dir_path, "apps", "nspanel-lovelace-ui", "luibackend", "translations", "frontend", filename)
|
||||||
path_backend_file = os.path.join(dir_path, "translations", "backend" , filename)
|
path_backend_file = os.path.join(dir_path, "apps", "nspanel-lovelace-ui", "luibackend", "translations", "backend" , filename)
|
||||||
return path_frontend_file, path_backend_file
|
return path_frontend_file, path_backend_file
|
||||||
|
|
||||||
def lookup(path_frontend_file, path_backend_file, lookupstr):
|
def lookup(path_frontend_file, path_backend_file, lookupstr):
|
||||||
|
|||||||
Reference in New Issue
Block a user