Skip to content

Commit

Permalink
i18n(title): translate title and logo text
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitMY committed Nov 29, 2024
1 parent c946c20 commit 0685912
Show file tree
Hide file tree
Showing 112 changed files with 356 additions and 209 deletions.
7 changes: 7 additions & 0 deletions src/app/components/logo/logo.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<picture>
<!-- TODO: inline the logo SVGs for better performance -->
<img src="../../../assets/brand/logo.svg" alt="Logo" />
</picture>
@if (text) {
{{ text }}
}
10 changes: 10 additions & 0 deletions src/app/components/logo/logo.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
:host {
display: flex;
align-items: end;
font-size: 1.5em;
}

img {
height: 1em;
display: block;
}
22 changes: 22 additions & 0 deletions src/app/components/logo/logo.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import {ComponentFixture, TestBed} from '@angular/core/testing';

import {LogoComponent} from './logo.component';

describe('LogoComponent', () => {
let component: LogoComponent;
let fixture: ComponentFixture<LogoComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [LogoComponent],
}).compileComponents();

fixture = TestBed.createComponent(LogoComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
10 changes: 10 additions & 0 deletions src/app/components/logo/logo.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import {Component, Input} from '@angular/core';

@Component({
selector: 'app-logo',
templateUrl: './logo.component.html',
styleUrl: './logo.component.scss',
})
export class LogoComponent {
@Input() text?: string;
}
5 changes: 1 addition & 4 deletions src/app/pages/landing/landing.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@
</ion-buttons>
}
<ion-title>
<picture>
<!-- TODO: inline the logo SVGs for better performance -->
<img src="../../../assets/brand/logo.svg" alt="Logo" id="logo" />
</picture>
<app-logo />
</ion-title>
@if (!isMobile.matches) {
<ion-buttons slot="primary">
Expand Down
2 changes: 2 additions & 0 deletions src/app/pages/landing/landing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import {LandingFooterComponent} from './landing-footer/landing-footer.component'
import {ReactiveFormsModule} from '@angular/forms';
import {register} from 'swiper/element/bundle';
import {SignedToSpokenModule} from '../translate/signed-to-spoken/signed-to-spoken.module';
import {LogoComponent} from '../../components/logo/logo.component';

register();

Expand All @@ -56,6 +57,7 @@ register();
AboutApiComponent,
TermsComponent,
PrivacyComponent,
LogoComponent,
],
imports: [
CommonModule,
Expand Down
5 changes: 3 additions & 2 deletions src/assets/i18n/af.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"shift": "Shift"
},
"translate": {
"title": "Sign Vertaal",
"title": "Gebare Vertaal",
"language-selector": {
"detected": "{{lang}} - Bespeur",
"detect": "Bespeur taal",
Expand Down Expand Up @@ -51,7 +51,8 @@
"actions": {
"copy": "Kopieer vertaling"
}
}
},
"logo": "Vertaal"
},
"landing": {
"try": "Vertaal nou",
Expand Down
5 changes: 3 additions & 2 deletions src/assets/i18n/am.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"shift": "Shift"
},
"translate": {
"title": "የSign ተርጓሚ",
"title": "እንባር ተርጓሚ",
"language-selector": {
"detected": "{{lang}} - ተገኝቷል",
"detect": "ቋንቋ አግኝ",
Expand Down Expand Up @@ -51,7 +51,8 @@
"actions": {
"copy": "ትርጉም ቅዳ"
}
}
},
"logo": "ተርጓሚ"
},
"landing": {
"try": "አሁን ተርጉም",
Expand Down
5 changes: 3 additions & 2 deletions src/assets/i18n/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"shift": "Shift"
},
"translate": {
"title": "ترجمة Sign",
"title": "مترجم الإشارات",
"language-selector": {
"detected": "{{lang}} - تم الكشف عنه",
"detect": "التعرّف التلقائي على اللغة",
Expand Down Expand Up @@ -51,7 +51,8 @@
"actions": {
"copy": "نسخ الترجمة"
}
}
},
"logo": "مترجم"
},
"landing": {
"try": "الترجمة الآن",
Expand Down
5 changes: 3 additions & 2 deletions src/assets/i18n/az.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"shift": "Shift"
},
"translate": {
"title": "Sign Tərcümə",
"title": "İşarə Tərcümə",
"language-selector": {
"detected": "{{lang}} - Aşkarlandı",
"detect": "Dili seç",
Expand Down Expand Up @@ -51,7 +51,8 @@
"actions": {
"copy": "Tərcüməni Kopyalayın"
}
}
},
"logo": "Tərcümə"
},
"landing": {
"try": "İndi tərcümə edin",
Expand Down
5 changes: 3 additions & 2 deletions src/assets/i18n/be.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"shift": "Shift"
},
"translate": {
"title": "Перакладчык Sign",
"title": "Перакладчык жэстаў",
"language-selector": {
"detected": "{{lang}} - Выяўлена",
"detect": "Выявіць мову",
Expand Down Expand Up @@ -51,7 +51,8 @@
"actions": {
"copy": "Капіяваць пераклад"
}
}
},
"logo": "Перакладчык"
},
"landing": {
"try": "Перакласці зараз",
Expand Down
5 changes: 3 additions & 2 deletions src/assets/i18n/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"shift": "Shift"
},
"translate": {
"title": "Sign Преводач",
"title": "Жестов преводач",
"language-selector": {
"detected": "{{lang}} – Открит",
"detect": "Разпознаване на езика",
Expand Down Expand Up @@ -51,7 +51,8 @@
"actions": {
"copy": "Копиране на превода"
}
}
},
"logo": "Преводач"
},
"landing": {
"try": "Превод сега",
Expand Down
5 changes: 3 additions & 2 deletions src/assets/i18n/bn.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"shift": "Shift"
},
"translate": {
"title": "Sign Translate",
"title": "চিহ্ন অনুবাদ",
"language-selector": {
"detected": "{{lang}} - সনাক্ত করা হয়েছে৷",
"detect": "ভাষা শনাক্ত করুন",
Expand Down Expand Up @@ -51,7 +51,8 @@
"actions": {
"copy": "অনুলিপি অনুবাদ"
}
}
},
"logo": "অনুবাদ"
},
"landing": {
"try": "এখনই অনুবাদ করুন",
Expand Down
5 changes: 3 additions & 2 deletions src/assets/i18n/bs.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"shift": "Shift"
},
"translate": {
"title": "Sign Prevodilac",
"title": "Prevodilac znakovnog jezika",
"language-selector": {
"detected": "{{lang}} - Otkriveno",
"detect": "Otkrij jezik",
Expand Down Expand Up @@ -51,7 +51,8 @@
"actions": {
"copy": "Kopiraj prevod"
}
}
},
"logo": "Prevodilac"
},
"landing": {
"try": "Prevedi odmah",
Expand Down
5 changes: 3 additions & 2 deletions src/assets/i18n/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"shift": "Maj"
},
"translate": {
"title": "Traductor de Sign",
"title": "Traductor de Signes",
"language-selector": {
"detected": "{{lang}} - Detectat",
"detect": "Detecta l’idioma",
Expand Down Expand Up @@ -51,7 +51,8 @@
"actions": {
"copy": "Copia Traducció"
}
}
},
"logo": "Traductor"
},
"landing": {
"try": "Tradueix ara",
Expand Down
3 changes: 2 additions & 1 deletion src/assets/i18n/ceb.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"actions": {
"copy": "Kopyaha ang Hubad"
}
}
},
"logo": "Translate"
},
"landing": {
"try": "Paghubad karon",
Expand Down
5 changes: 3 additions & 2 deletions src/assets/i18n/co.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"shift": "Shift"
},
"translate": {
"title": "Sign Traduction",
"title": "Traduttore di Segni",
"language-selector": {
"detected": "{{lang}} - Detected",
"detect": "Détecter la langue",
Expand Down Expand Up @@ -51,7 +51,8 @@
"actions": {
"copy": "Copy Translation"
}
}
},
"logo": "Traduttore"
},
"landing": {
"try": "Traducia avà",
Expand Down
5 changes: 3 additions & 2 deletions src/assets/i18n/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"shift": "Shift"
},
"translate": {
"title": "Překladač Sign",
"title": "Překladač znaků",
"language-selector": {
"detected": "{{lang}} – Zjištěno",
"detect": "Rozpoznat jazyk",
Expand Down Expand Up @@ -51,7 +51,8 @@
"actions": {
"copy": "Kopírovat překlad"
}
}
},
"logo": "Překladač"
},
"landing": {
"try": "Prekladač",
Expand Down
5 changes: 3 additions & 2 deletions src/assets/i18n/cy.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"shift": "Shift"
},
"translate": {
"title": "Sign Cyfieithu",
"title": "Cyfieithydd Arwyddion",
"language-selector": {
"detected": "{{lang}} - Wedi canfod",
"detect": "Synhwyro iaith",
Expand Down Expand Up @@ -51,7 +51,8 @@
"actions": {
"copy": "Copi Cyfieithiad"
}
}
},
"logo": "Cyfieithydd"
},
"landing": {
"try": "Cyfieithu nawr",
Expand Down
5 changes: 3 additions & 2 deletions src/assets/i18n/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"shift": "Shift"
},
"translate": {
"title": "Sign Oversæt",
"title": "Tegn Oversætter",
"language-selector": {
"detected": "{{lang}} - fundet",
"detect": "Registrer sprog",
Expand Down Expand Up @@ -51,7 +51,8 @@
"actions": {
"copy": "Kopi oversættelse"
}
}
},
"logo": "Oversætter"
},
"landing": {
"try": "Oversæt nu",
Expand Down
5 changes: 3 additions & 2 deletions src/assets/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"shift": "Umschalttaste"
},
"translate": {
"title": "Sign Übersetzer",
"title": "Gebärde Übersetzer",
"language-selector": {
"detected": "{{lang}} – Erkannt",
"detect": "Sprache erkennen",
Expand Down Expand Up @@ -51,7 +51,8 @@
"actions": {
"copy": "Übersetzung kopieren"
}
}
},
"logo": "Übersetzer"
},
"landing": {
"try": "Jetzt übersetzen",
Expand Down
5 changes: 3 additions & 2 deletions src/assets/i18n/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"shift": "Shift"
},
"translate": {
"title": "Μετάφραση Sign",
"title": "Μεταφραστής Νοημάτων",
"language-selector": {
"detected": "{{lang}} - Εντοπίστηκε",
"detect": "Αναγνώριση γλώσσας",
Expand Down Expand Up @@ -51,7 +51,8 @@
"actions": {
"copy": "Αντιγραφή μετάφρασης"
}
}
},
"logo": "Μεταφραστής"
},
"landing": {
"try": "Μετάφραση τώρα",
Expand Down
3 changes: 2 additions & 1 deletion src/assets/i18n/en-gb.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"actions": {
"copy": "Copy Translation"
}
}
},
"logo": "Translate"
},
"landing": {
"try": "Translate now",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"shift": "Shift"
},
"translate": {
"logo": "Translate",
"title": "Sign Translate",
"language-selector": {
"detected": "{{lang}} - Detected",
Expand Down
Loading

0 comments on commit 0685912

Please sign in to comment.