Skip to content

Commit

Permalink
import basque translations (#615)
Browse files Browse the repository at this point in the history
* import basque translations

* import basque translations
  • Loading branch information
JarbasAl authored Dec 2, 2024
1 parent 9f73c4f commit 05bdbfd
Show file tree
Hide file tree
Showing 6 changed files with 122 additions and 49 deletions.
31 changes: 31 additions & 0 deletions ovos_core/intent_services/locale/eu/global_stop.intent
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Amaitu jarduera guztiak
Amaitu prozesu guztiak
Amaitu zabalik dauden zeregin guztiak
Bukatu eragiketa guztiak
Bukatu uneko jarduera guztiak
Eten ekintza guztiak
Eten jarduera aktibo guztiak
Gelditu aribideko prozesu guztiak
Gelditu jarduera guztiak berehala
Geratu gauza guztiak orain
Geratu uneko zeregin guztiak
Utzi bertan behera aribideko prozesu guztiak
Utzi bertan behera uneko ekintza guztiak
Utzi egiteko dauden eragiketa guztiak
Utzi zeregin guztiak
amaitu dena
amaitu gauza guztiak
bukatu dena
bukatu dena
bukatu gauza guztiak
bukatu gauza guztiak
eten dena
eten gauza guztiak
gelditu dena
gelditu dena
gelditu gauza guztiak
gelditu gauza guztiak
utzi dena
utzi dena bertan behera
utzi gauza guztiak
utzi gauza guztiak bertan behera
17 changes: 17 additions & 0 deletions ovos_core/intent_services/locale/eu/stop.intent
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Eten uneko ekintza
Eten uneko jarduera
Gelditu al zaitezke orain?
Gelditu aribideko prozesua
Gelditu ataza horren burutzea
Gelditu egiten ari zaren hori
Gelditu uneko eragiketa
Mesedez, amaitu hori
Mesedez, bukatu uneko zeregina
Mesedez, gelditu hori
Mesedez, gelditu uneko ekintza
Mesedez, utzi uneko zeregina
Utzi lan hori egiteari
Utzi uneko agindua betetzeari
gelditu
gelditu hori
utzi hori egiteari
29 changes: 0 additions & 29 deletions ovos_core/intent_services/locale/it-it/global_stop.intent
Original file line number Diff line number Diff line change
@@ -1,31 +1,2 @@
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
ferma tutto
smetti tutto
12 changes: 0 additions & 12 deletions ovos_core/intent_services/locale/it-it/stop.intent
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
[UNUSED]
basta
fermati
piantala
Expand Down
28 changes: 20 additions & 8 deletions scripts/sync_translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,46 @@
data = json.load(f)
for fid, samples in data.items():
if samples:
samples = [s for s in samples if s] # s may be None
with open(f"{locale}/{lang.lower()}/{fid}", "w") as f:
samples = [s.strip() for s in samples
if s and s.strip() != "[UNUSED]"] # s may be None
p = f"{locale}/{lang.lower()}/{fid.lstrip('/')}"
os.makedirs(dirname(p), exist_ok=True)
with open(p, "w") as f:
f.write("\n".join(sorted(samples)))

if os.path.isfile(dialogs):
with open(dialogs) as f:
data = json.load(f)
for fid, samples in data.items():
if samples:
samples = [s for s in samples if s] # s may be None
with open(f"{locale}/{lang.lower()}/{fid}", "w") as f:
samples = [s.strip() for s in samples
if s and s.strip() != "[UNUSED]"] # s may be None
p = f"{locale}/{lang.lower()}/{fid.lstrip('/')}"
os.makedirs(dirname(p), exist_ok=True)
with open(p, "w") as f:
f.write("\n".join(sorted(samples)))

if os.path.isfile(vocs):
with open(vocs) as f:
data = json.load(f)
for fid, samples in data.items():
if samples:
samples = [s for s in samples if s] # s may be None
with open(f"{locale}/{lang.lower()}/{fid}", "w") as f:
samples = [s.strip() for s in samples
if s and s.strip() != "[UNUSED]"] # s may be None
p = f"{locale}/{lang.lower()}/{fid.lstrip('/')}"
os.makedirs(dirname(p), exist_ok=True)
with open(p, "w") as f:
f.write("\n".join(sorted(samples)))

if os.path.isfile(regexes):
with open(regexes) as f:
data = json.load(f)
for fid, samples in data.items():
if samples:
samples = [s for s in samples if s] # s may be None
with open(f"{locale}/{lang.lower()}/{fid}", "w") as f:
samples = [s.strip() for s in samples
if s and s.strip() != "[UNUSED]"] # s may be None
p = f"{locale}/{lang.lower()}/{fid.lstrip('/')}"
os.makedirs(dirname(p), exist_ok=True)
with open(p, "w") as f:
f.write("\n".join(sorted(samples)))

54 changes: 54 additions & 0 deletions translations/eu/intents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"stop.intent": [
"Gelditu al zaitezke orain?",
"Eten uneko ekintza",
"Eten uneko jarduera",
"Mesedez, utzi uneko zeregina",
"Mesedez, gelditu uneko ekintza",
"Mesedez, amaitu hori",
"Mesedez, gelditu hori",
"Mesedez, bukatu uneko zeregina",
"Utzi uneko agindua betetzeari",
"Gelditu ataza horren burutzea",
"Gelditu uneko eragiketa",
"Gelditu aribideko prozesua",
"Gelditu egiten ari zaren hori",
"Utzi lan hori egiteari",
"gelditu",
"utzi hori egiteari",
"gelditu hori"
],
"global_stop.intent": [
"Utzi bertan behera aribideko prozesu guztiak",
"Utzi bertan behera uneko ekintza guztiak",
"Utzi egiteko dauden eragiketa guztiak",
"Utzi zeregin guztiak",
"Eten ekintza guztiak",
"Eten jarduera aktibo guztiak",
"Amaitu prozesu guztiak",
"Amaitu jarduera guztiak",
"Amaitu zabalik dauden zeregin guztiak",
"Gelditu jarduera guztiak berehala",
"Gelditu aribideko prozesu guztiak",
"Geratu uneko zeregin guztiak",
"Geratu gauza guztiak orain",
"Bukatu eragiketa guztiak",
"Bukatu uneko jarduera guztiak",
"utzi dena bertan behera",
"utzi gauza guztiak bertan behera",
"utzi dena",
"utzi gauza guztiak",
"eten dena",
"eten gauza guztiak",
"amaitu dena",
"amaitu gauza guztiak",
"bukatu dena",
"bukatu gauza guztiak",
"gelditu dena",
"gelditu gauza guztiak",
"gelditu dena",
"gelditu gauza guztiak",
"bukatu dena",
"bukatu gauza guztiak"
]
}

0 comments on commit 05bdbfd

Please sign in to comment.