Skip to content

Commit

Permalink
🌐 Add i18n: upload, cancel, close (fixed #107)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Mar 16, 2020
1 parent 89a999a commit 6bae64c
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/i18n/de.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export const de = {
upload: "Upload",
cancel: "Cancel",
close: "Close",
uploading: "Hochladen ...",
uploaded: "Hochgeladen",
fetching: "Bild abrufen von $1$ ...",
Expand Down
3 changes: 3 additions & 0 deletions src/i18n/en.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export const en = {
upload: "Upload",
cancel: "Cancel",
close: "Close",
uploading: "Uploading...",
uploaded: "Uploaded",
fetching: "Getting your image from $1$...",
Expand Down
5 changes: 4 additions & 1 deletion src/i18n/es.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
export const es = {
uploading: "Subir ...",
upload: "Subir",
cancel: "Cancelar",
close: "Cerca",
uploading: "Subir...",
uploaded: "Subido",
fetching: "Obtener imagen de $1$ ...",
poweredBy: "Hecho posible por $1$",
Expand Down
5 changes: 4 additions & 1 deletion src/i18n/fr.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
export const fr = {
uploading: "Télécharger ...",
upload: "Télécharger",
cancel: "Annuler",
close: "Fermer",
uploading: "Télécharger...",
uploaded: "Téléchargé",
fetching: "Obtenir une image à partir de $1$ ...",
poweredBy: "Rendu possible par $1$",
Expand Down
3 changes: 3 additions & 0 deletions src/i18n/hi.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export const hi = {
upload: "अपलोड",
cancel: "रद्द करना",
close: "बंद करे",
uploading: "अपलोड हो रहा है...",
uploaded: "अपलोड हो गया",
fetching: "हम आपकी तस्वीर $1$ से ला रहे हैं...",
Expand Down
3 changes: 3 additions & 0 deletions src/i18n/it.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export const it = {
upload: "Caricare",
cancel: "Annulla",
close: "Vicino",
uploading: "Carica ...",
uploaded: "caricato",
fetching: "Ottieni immagine da $1$ ...",
Expand Down
3 changes: 3 additions & 0 deletions src/i18n/nl.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export const nl = {
upload: "Uploaden",
cancel: "Annuleren",
close: "Dichtbij",
uploading: "Uploaden...",
uploaded: "Geupload",
fetching: "Afbeelding ophalen van $1$...",
Expand Down
3 changes: 3 additions & 0 deletions src/i18n/ru.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export const ru = {
upload: "Загрузить",
cancel: "Отмена",
close: "близко",
uploading: "Загрузка... ",
uploaded: "загруженное",
fetching: "Скачиваем изображение с $1$... ",
Expand Down
3 changes: 3 additions & 0 deletions src/i18n/tr.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export const tr = {
upload: "Yükleme",
cancel: "İptal etmek",
close: "Kapat",
uploading: "Yükle ...",
uploaded: "yüklenen",
fetching: "$1$ 'dan resim al ...",
Expand Down
3 changes: 3 additions & 0 deletions src/i18n/zh-TW.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export const zhTW = {
upload: "上載",
cancel: "取消",
close: "關",
uploading: "上傳中...",
uploaded: "已上傳",
fetching: "正在取得您的影像從 $1$...",
Expand Down
8 changes: 5 additions & 3 deletions src/uppload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ export class Uppload implements IUppload {
*/
private getEffectsNavbar() {
return `<div class="effects-continue">
<button class="effects-continue--cancel">Cancel</button>
<button class="effects-continue--cancel">${translate("cancel")}</button>
</div><div class="effects-tabs"><div class="effects-tabs-flow">
${this.effects
.map(
Expand All @@ -384,7 +384,7 @@ export class Uppload implements IUppload {
)
.join("")}
</div></div><div class="effects-continue">
<button class="effects-continue--upload">Upload</button>
<button class="effects-continue--upload">${translate("upload")}</button>
</div>`;
}

Expand Down Expand Up @@ -417,7 +417,9 @@ export class Uppload implements IUppload {
</div>
</div>
<div class="uppload-modal-bg">
<button class="uppload-close" aria-label="Close">&times;</button>
<button class="uppload-close" aria-label="${translate(
"close"
)}">&times;</button>
</div>
`;
}
Expand Down

0 comments on commit 6bae64c

Please sign in to comment.