-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implementation new languages spain, russian, chinese and french
- Loading branch information
1 parent
8878738
commit f3e0f27
Showing
11 changed files
with
478 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 4 additions & 12 deletions
16
src/app/components/base/app-language/app-language.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,8 @@ | ||
<section class="language"> | ||
<button (click)="changeLanguage('en')">English</button> | ||
<button (click)="changeLanguage('pt')">Português</button> | ||
<a href="/en/"> | ||
English | ||
</a> | ||
<a href="/pt/"> | ||
Português | ||
</a> | ||
<!-- @for (language of languages; track language) { | ||
<button> | ||
@for (language of languages; track language) { | ||
<a href="/{{language}}/" (click)="changeLanguage(language)"> | ||
<img [src]="getImageUrl(language)" [alt]="language" /> | ||
{{language}} | ||
</button> | ||
} --> | ||
</a> | ||
} | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.language { | ||
a { | ||
flex: 1; | ||
margin: 0.5rem; | ||
cursor: pointer; | ||
border: 0; | ||
background: #eee; | ||
padding: 0.5rem; | ||
border-radius: 5px; | ||
box-shadow: 0 1px 0 rgba(255, 255, 255, 1), 0 2px 5px rgba(0, 0, 0, 0.2); | ||
font-size: 0; | ||
text-decoration: none; | ||
font-size: 0; | ||
display: inline-flex; | ||
|
||
&.actived { | ||
color: #fff; | ||
background: #2c3e50; | ||
} | ||
} | ||
|
||
img { | ||
width: 20px; | ||
pointer-events: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"> | ||
<file source-language="pt-BR" datatype="plaintext" original="ng2.template" target-language="es-ES"> | ||
<body> | ||
<trans-unit id="title" datatype="html"> | ||
<source>SlideContentAngular</source> | ||
<target>SlideContentAngular</target> | ||
<context-group purpose="location"> | ||
<context context-type="sourcefile">src/app/components/base/app-footer/app-footer.component.html</context> | ||
<context context-type="linenumber">7</context> | ||
</context-group> | ||
<context-group purpose="location"> | ||
<context context-type="sourcefile">src/app/components/base/app-header/app-header.component.html</context> | ||
<context context-type="linenumber">3</context> | ||
</context-group> | ||
</trans-unit> | ||
<trans-unit id="nav.home" datatype="html"> | ||
<source>Início</source> | ||
<target>Inicio</target> | ||
<context-group purpose="location"> | ||
<context context-type="sourcefile">src/app/components/base/app-navigation/app-navigation.component.html</context> | ||
<context context-type="linenumber">6</context> | ||
</context-group> | ||
</trans-unit> | ||
<trans-unit id="nav.about" datatype="html"> | ||
<source>Informações</source> | ||
<target>Información</target> | ||
<context-group purpose="location"> | ||
<context context-type="sourcefile">src/app/components/base/app-navigation/app-navigation.component.html</context> | ||
<context context-type="linenumber">18</context> | ||
</context-group> | ||
</trans-unit> | ||
<trans-unit id="version" datatype="html"> | ||
<source>Versão <x id="INTERPOLATION" equiv-text="{{ appVersion }}"/></source> | ||
<target>Versión <x id="INTERPOLATION" equiv-text="{{ appVersion }}"/></target> | ||
<context-group purpose="location"> | ||
<context context-type="sourcefile">src/app/components/base/app-version/app-version.component.html</context> | ||
<context context-type="linenumber">1</context> | ||
</context-group> | ||
</trans-unit> | ||
<trans-unit id="to_left" datatype="html"> | ||
<source>Ir para a esquerda</source> | ||
<target>Ir a la izquierda</target> | ||
<context-group purpose="location"> | ||
<context context-type="sourcefile">src/app/components/slide-content/slide-content.component.html</context> | ||
<context context-type="linenumber">7</context> | ||
</context-group> | ||
</trans-unit> | ||
<trans-unit id="to_right" datatype="html"> | ||
<source>Ir para a direita</source> | ||
<target>Ir a la derecha</target> | ||
<context-group purpose="location"> | ||
<context context-type="sourcefile">src/app/components/slide-content/slide-content.component.html</context> | ||
<context context-type="linenumber">8</context> | ||
</context-group> | ||
</trans-unit> | ||
<trans-unit id="about" datatype="html"> | ||
<source>Um slide de conteúdo simples desenvolvido em Angular com botões de navegação e um timer na animação de transição</source> | ||
<target>Una diapositiva de contenido simple desarrollada en Angular con botones de navegación y un temporizador en la animación de transición</target> | ||
<context-group purpose="location"> | ||
<context context-type="sourcefile">src/app/views/about/about.component.html</context> | ||
<context context-type="linenumber">2</context> | ||
</context-group> | ||
</trans-unit> | ||
<trans-unit id="slide_infinity" datatype="html"> | ||
<source>Slide infinito</source> | ||
<target>Diapositiva infinita</target> | ||
<context-group purpose="location"> | ||
<context context-type="sourcefile">src/app/views/home/home.component.html</context> | ||
<context context-type="linenumber">11</context> | ||
</context-group> | ||
</trans-unit> | ||
<trans-unit id="slide_no_navigation" datatype="html"> | ||
<source>Slide sem navegação</source> | ||
<target>Diapositiva sin navegación</target> | ||
<context-group purpose="location"> | ||
<context context-type="sourcefile">src/app/views/home/home.component.html</context> | ||
<context context-type="linenumber">28</context> | ||
</context-group> | ||
</trans-unit> | ||
<trans-unit id="slide_fix_time" datatype="html"> | ||
<source>Slide com duração de 10 segundos</source> | ||
<target>Diapositiva con una duración de 10 segundos</target> | ||
<context-group purpose="location"> | ||
<context context-type="sourcefile">src/app/views/home/home.component.html</context> | ||
<context context-type="linenumber">43</context> | ||
</context-group> | ||
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> |
Oops, something went wrong.