diff --git a/packages/i18n/src/index.js b/packages/i18n/src/index.js
index 440a40d5e88..a7b1fe4bc37 100644
--- a/packages/i18n/src/index.js
+++ b/packages/i18n/src/index.js
@@ -11,6 +11,7 @@ const topics = [
"app",
"email",
"errors",
+ "filter",
"gdpr",
"i18n",
"measurements"
@@ -22,6 +23,7 @@ const account = {};
const app = {};
const email = {};
const errors = {};
+const filter = {};
const gdpr = {};
const i18n = {};
const measurements = {};
@@ -31,9 +33,20 @@ for (let lang of languages) account[lang] = imports[lang].account;
for (let lang of languages) app[lang] = imports[lang].app;
for (let lang of languages) email[lang] = imports[lang].email;
for (let lang of languages) errors[lang] = imports[lang].errors;
+for (let lang of languages) filter[lang] = imports[lang].filter;
for (let lang of languages) gdpr[lang] = imports[lang].gdpr;
for (let lang of languages) i18n[lang] = imports[lang].i18n;
for (let lang of languages) measurements[lang] = imports[lang].measurements;
for (let lang of languages) strings[lang] = imports[lang].strings;
-export { account, app, email, errors, gdpr, i18n, measurements, strings };
+export {
+ account,
+ app,
+ email,
+ errors,
+ filter,
+ gdpr,
+ i18n,
+ measurements,
+ strings
+};
diff --git a/packages/i18n/src/locales/de/app.yaml b/packages/i18n/src/locales/de/app.yaml
index 2dbb0ab106e..2702970756d 100644
--- a/packages/i18n/src/locales/de/app.yaml
+++ b/packages/i18n/src/locales/de/app.yaml
@@ -37,6 +37,7 @@ emailWorksToo: 'Wenn Du Deinen Benutzername nicht weißt: Deine E-mail Addresse
enterEmailPickPassword: Gib Deine E-Mail Adresse ein und wähle ein Passwort
fieldRemoved: "{field} entfernt"
fieldSaved: "{field} gespeichert"
+filterPatterns: Filtern der Schnittmuster
forgotLoginInstructions: 'Benutzername oder Emailadresse eingeben und den Passwort zurücksetzen Knopf druecken'
freesewing: Freesewing
github: GitHub
diff --git a/packages/i18n/src/locales/de/filter.yml b/packages/i18n/src/locales/de/filter.yml
new file mode 100644
index 00000000000..08cfea39727
--- /dev/null
+++ b/packages/i18n/src/locales/de/filter.yml
@@ -0,0 +1,18 @@
+department:
+ title: Abteilung
+ menswear: Herrenbekleidung
+ womenswear: Frauenkleidung
+
+type:
+ title: Art
+ block: Block
+ pattern: Muster
+
+tags:
+ title: Stichworte
+ basics: Grundlagen
+ bottom: Boden
+ top: Oben
+ underwear: Unterwäsche
+
+resetFilter: Filter zurücksetzen
diff --git a/packages/i18n/src/locales/de/index.js b/packages/i18n/src/locales/de/index.js
index 55f9afdf0ea..1c097569afc 100644
--- a/packages/i18n/src/locales/de/index.js
+++ b/packages/i18n/src/locales/de/index.js
@@ -2,6 +2,7 @@ import account from "./account.yaml";
import app from "./app.yaml";
import email from "./email.yaml";
import errors from "./errors.yaml";
+import filter from "./filter.yml";
import gdpr from "./gdpr.yaml";
import i18n from "./i18n.yaml";
import measurements from "./measurements.yaml";
@@ -11,6 +12,7 @@ const topics = {
app,
email,
errors,
+ filter,
gdpr,
i18n,
measurements
@@ -20,8 +22,26 @@ const strings = {};
for (let topic of Object.keys(topics)) {
for (let id of Object.keys(topics[topic])) {
- strings[topic + "." + id] = topics[topic][id];
+ if (typeof topics[topic][id] === "string")
+ strings[topic + "." + id] = topics[topic][id];
+ else {
+ for (let key of Object.keys(topics[topic][id])) {
+ if (typeof topics[topic][id][key] === "string")
+ strings[topic + "." + id + "." + key] = topics[topic][id][key];
+ else console.log("Depth exceeded!");
+ }
+ }
}
}
-export { account, app, email, errors, gdpr, i18n, measurements, strings };
+export {
+ account,
+ app,
+ email,
+ errors,
+ filter,
+ gdpr,
+ i18n,
+ measurements,
+ strings
+};
diff --git a/packages/i18n/src/locales/en/app.yaml b/packages/i18n/src/locales/en/app.yaml
index 7fcfb97319f..09b3fff559b 100644
--- a/packages/i18n/src/locales/en/app.yaml
+++ b/packages/i18n/src/locales/en/app.yaml
@@ -37,6 +37,7 @@ emailWorksToo: 'If you don''t know your username, you can also use your E-mail a
enterEmailPickPassword: Enter your E-mail address, and pick a password
fieldRemoved: "{field} removed"
fieldSaved: "{field} saved"
+filterPatterns: Filter patterns
forgotLoginInstructions: 'If you don''t remember your password, enter your username or E-mail address below and click the Reset password button'
freesewing: Freesewing
github: GitHub
diff --git a/packages/i18n/src/locales/en/filter.yml b/packages/i18n/src/locales/en/filter.yml
new file mode 100644
index 00000000000..d8e5764b5d2
--- /dev/null
+++ b/packages/i18n/src/locales/en/filter.yml
@@ -0,0 +1,18 @@
+department:
+ title: Department
+ menswear: Menswear
+ womenswear: Womenswear
+
+type:
+ title: Type
+ block: Block/Sloper
+ pattern: Pattern
+
+tags:
+ title: Tags
+ basics: Basics
+ bottom: Bottom
+ top: Top
+ underwear: Underwear
+
+resetFilter: Reset filter
diff --git a/packages/i18n/src/locales/en/index.js b/packages/i18n/src/locales/en/index.js
index 55f9afdf0ea..1c097569afc 100644
--- a/packages/i18n/src/locales/en/index.js
+++ b/packages/i18n/src/locales/en/index.js
@@ -2,6 +2,7 @@ import account from "./account.yaml";
import app from "./app.yaml";
import email from "./email.yaml";
import errors from "./errors.yaml";
+import filter from "./filter.yml";
import gdpr from "./gdpr.yaml";
import i18n from "./i18n.yaml";
import measurements from "./measurements.yaml";
@@ -11,6 +12,7 @@ const topics = {
app,
email,
errors,
+ filter,
gdpr,
i18n,
measurements
@@ -20,8 +22,26 @@ const strings = {};
for (let topic of Object.keys(topics)) {
for (let id of Object.keys(topics[topic])) {
- strings[topic + "." + id] = topics[topic][id];
+ if (typeof topics[topic][id] === "string")
+ strings[topic + "." + id] = topics[topic][id];
+ else {
+ for (let key of Object.keys(topics[topic][id])) {
+ if (typeof topics[topic][id][key] === "string")
+ strings[topic + "." + id + "." + key] = topics[topic][id][key];
+ else console.log("Depth exceeded!");
+ }
+ }
}
}
-export { account, app, email, errors, gdpr, i18n, measurements, strings };
+export {
+ account,
+ app,
+ email,
+ errors,
+ filter,
+ gdpr,
+ i18n,
+ measurements,
+ strings
+};
diff --git a/packages/i18n/src/locales/es/app.yaml b/packages/i18n/src/locales/es/app.yaml
index c69477955dd..bf0d4e88b99 100644
--- a/packages/i18n/src/locales/es/app.yaml
+++ b/packages/i18n/src/locales/es/app.yaml
@@ -37,6 +37,7 @@ emailWorksToo: 'Si no conoces tu nombre de usuario, tu dirección de correo elec
enterEmailPickPassword: Introduce tu dirección de email y elige una contraseña
fieldRemoved: "{field} eliminado"
fieldSaved: "{field} guardado"
+filterPatterns: Filtrar los patrones
forgotLoginInstructions: Entra tu nombre de usuario o correo electrónico debajo y pulsa el botón de Restablecer contraseña
freesewing: Freesewing
github: GitHub
diff --git a/packages/i18n/src/locales/es/filter.yml b/packages/i18n/src/locales/es/filter.yml
new file mode 100644
index 00000000000..213372de19a
--- /dev/null
+++ b/packages/i18n/src/locales/es/filter.yml
@@ -0,0 +1,19 @@
+department:
+ title: Departamento
+ menswear: Ropa de caballero
+ womenswear: Ropa de mujer
+
+type:
+ title: Tipo
+ block: Bloque
+ pattern: Patrón
+
+tags:
+ title: Etiquetas
+ basics: Lo esencial
+ bottom: Fondo
+ top: Top
+ underwear: Ropa interior
+
+resetFilter: Reajustar el filtro
+
diff --git a/packages/i18n/src/locales/es/index.js b/packages/i18n/src/locales/es/index.js
index 55f9afdf0ea..1c097569afc 100644
--- a/packages/i18n/src/locales/es/index.js
+++ b/packages/i18n/src/locales/es/index.js
@@ -2,6 +2,7 @@ import account from "./account.yaml";
import app from "./app.yaml";
import email from "./email.yaml";
import errors from "./errors.yaml";
+import filter from "./filter.yml";
import gdpr from "./gdpr.yaml";
import i18n from "./i18n.yaml";
import measurements from "./measurements.yaml";
@@ -11,6 +12,7 @@ const topics = {
app,
email,
errors,
+ filter,
gdpr,
i18n,
measurements
@@ -20,8 +22,26 @@ const strings = {};
for (let topic of Object.keys(topics)) {
for (let id of Object.keys(topics[topic])) {
- strings[topic + "." + id] = topics[topic][id];
+ if (typeof topics[topic][id] === "string")
+ strings[topic + "." + id] = topics[topic][id];
+ else {
+ for (let key of Object.keys(topics[topic][id])) {
+ if (typeof topics[topic][id][key] === "string")
+ strings[topic + "." + id + "." + key] = topics[topic][id][key];
+ else console.log("Depth exceeded!");
+ }
+ }
}
}
-export { account, app, email, errors, gdpr, i18n, measurements, strings };
+export {
+ account,
+ app,
+ email,
+ errors,
+ filter,
+ gdpr,
+ i18n,
+ measurements,
+ strings
+};
diff --git a/packages/i18n/src/locales/fr/app.yaml b/packages/i18n/src/locales/fr/app.yaml
index ad6a55bfda6..71be7321d5d 100644
--- a/packages/i18n/src/locales/fr/app.yaml
+++ b/packages/i18n/src/locales/fr/app.yaml
@@ -37,6 +37,7 @@ emailWorksToo: 'Si vous ne connaissez pas votre nom d''utilisateur, votre adress
enterEmailPickPassword: Saisissez votre adresse mail et choisissez un mot de passe
fieldRemoved: "{field} enlevé"
fieldSaved: "{field} enregistré"
+filterPatterns: Filtrez les patrons
forgotLoginInstructions: 'Entrez votre nom d''utilisateur ou votre adresse e-mail ci-dessous et cliquez sur le bouton Réintialiser le mot de passe.'
freesewing: Freesewing
github: GitHub
diff --git a/packages/i18n/src/locales/fr/filter.yml b/packages/i18n/src/locales/fr/filter.yml
new file mode 100644
index 00000000000..836c9ab824f
--- /dev/null
+++ b/packages/i18n/src/locales/fr/filter.yml
@@ -0,0 +1,19 @@
+department:
+ title: Département
+ menswear: Vêtements pour hommes
+ womenswear: Vêtements pour femmes
+
+type:
+ title: Type
+ block: Bloc
+ pattern: Patron
+
+tags:
+ title: Tags
+ basics: Les bases
+ bottom: Bas
+ top: Top
+ underwear: Sous-vêtements
+
+resetFilter: Réinitialiser le filtre
+
diff --git a/packages/i18n/src/locales/fr/index.js b/packages/i18n/src/locales/fr/index.js
index 55f9afdf0ea..1c097569afc 100644
--- a/packages/i18n/src/locales/fr/index.js
+++ b/packages/i18n/src/locales/fr/index.js
@@ -2,6 +2,7 @@ import account from "./account.yaml";
import app from "./app.yaml";
import email from "./email.yaml";
import errors from "./errors.yaml";
+import filter from "./filter.yml";
import gdpr from "./gdpr.yaml";
import i18n from "./i18n.yaml";
import measurements from "./measurements.yaml";
@@ -11,6 +12,7 @@ const topics = {
app,
email,
errors,
+ filter,
gdpr,
i18n,
measurements
@@ -20,8 +22,26 @@ const strings = {};
for (let topic of Object.keys(topics)) {
for (let id of Object.keys(topics[topic])) {
- strings[topic + "." + id] = topics[topic][id];
+ if (typeof topics[topic][id] === "string")
+ strings[topic + "." + id] = topics[topic][id];
+ else {
+ for (let key of Object.keys(topics[topic][id])) {
+ if (typeof topics[topic][id][key] === "string")
+ strings[topic + "." + id + "." + key] = topics[topic][id][key];
+ else console.log("Depth exceeded!");
+ }
+ }
}
}
-export { account, app, email, errors, gdpr, i18n, measurements, strings };
+export {
+ account,
+ app,
+ email,
+ errors,
+ filter,
+ gdpr,
+ i18n,
+ measurements,
+ strings
+};
diff --git a/packages/i18n/src/locales/nl/app.yaml b/packages/i18n/src/locales/nl/app.yaml
index 463e189f95b..63bc05de8ac 100644
--- a/packages/i18n/src/locales/nl/app.yaml
+++ b/packages/i18n/src/locales/nl/app.yaml
@@ -37,6 +37,7 @@ emailWorksToo: 'Als je je gebruikersnaam niet meer weet, vul dan je email
enterEmailPickPassword: Voer je email adres in, en kies een wachtwoord
fieldRemoved: "{field} verwijderd"
fieldSaved: "{field} opgeslagen"
+filterPatterns: Patronen filteren
forgotLoginInstructions: 'Als je je wachtwoord niet meer weet, vul dan hieronder je gebruikersnaam of email adres in, en klik op de Herstel wachtwoord knop'
freesewing: Freesewing
github: GitHub
diff --git a/packages/i18n/src/locales/nl/filter.yml b/packages/i18n/src/locales/nl/filter.yml
new file mode 100644
index 00000000000..5a8e850022f
--- /dev/null
+++ b/packages/i18n/src/locales/nl/filter.yml
@@ -0,0 +1,18 @@
+department:
+ title: Afdeling
+ menswear: Herenkleding
+ womenswear: Dameskleding
+
+type:
+ title: Soort
+ block: Blok
+ pattern: Patroon
+
+tags:
+ title: Tags
+ basics: Basics
+ bottom: Bodem
+ top: Top
+ underwear: Ondergoed
+
+resetFilter: Reset filter
diff --git a/packages/i18n/src/locales/nl/index.js b/packages/i18n/src/locales/nl/index.js
index 55f9afdf0ea..1c097569afc 100644
--- a/packages/i18n/src/locales/nl/index.js
+++ b/packages/i18n/src/locales/nl/index.js
@@ -2,6 +2,7 @@ import account from "./account.yaml";
import app from "./app.yaml";
import email from "./email.yaml";
import errors from "./errors.yaml";
+import filter from "./filter.yml";
import gdpr from "./gdpr.yaml";
import i18n from "./i18n.yaml";
import measurements from "./measurements.yaml";
@@ -11,6 +12,7 @@ const topics = {
app,
email,
errors,
+ filter,
gdpr,
i18n,
measurements
@@ -20,8 +22,26 @@ const strings = {};
for (let topic of Object.keys(topics)) {
for (let id of Object.keys(topics[topic])) {
- strings[topic + "." + id] = topics[topic][id];
+ if (typeof topics[topic][id] === "string")
+ strings[topic + "." + id] = topics[topic][id];
+ else {
+ for (let key of Object.keys(topics[topic][id])) {
+ if (typeof topics[topic][id][key] === "string")
+ strings[topic + "." + id + "." + key] = topics[topic][id][key];
+ else console.log("Depth exceeded!");
+ }
+ }
}
}
-export { account, app, email, errors, gdpr, i18n, measurements, strings };
+export {
+ account,
+ app,
+ email,
+ errors,
+ filter,
+ gdpr,
+ i18n,
+ measurements,
+ strings
+};