Skip to content

Commit

Permalink
feat(ui): Add translations for read more, read less
Browse files Browse the repository at this point in the history
  • Loading branch information
Angi-Kinas committed Dec 19, 2023
1 parent b4d4d16 commit eef415d
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
(click)="toggleDisplay()"
class="text-primary cursor-pointer pt-2.5"
>
{{ isExpanded ? 'Show Less' : 'Read More' }}
{{ (isExpanded ? 'ui.readLess' : 'ui.readMore') | translate }}
</div>
2 changes: 1 addition & 1 deletion libs/ui/elements/src/lib/ui-elements.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { FormsModule } from '@angular/forms'
import { AvatarComponent } from './avatar/avatar.component'
import { UserPreviewComponent } from './user-preview/user-preview.component'
import { GnUiLinkifyDirective } from './metadata-info/linkify.directive'
import { PaginationButtonsComponent } from './pagination-buttons/pagination-buttons.component';
import { PaginationButtonsComponent } from './pagination-buttons/pagination-buttons.component'
import { MaxLinesComponent } from './max-lines/max-lines.component'

@NgModule({
Expand Down
2 changes: 2 additions & 0 deletions translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@
"tooltip.html.copy": "HTML kopieren",
"tooltip.url.copy": "URL kopieren",
"tooltip.url.open": "URL öffnen",
"ui.readLess": "Weniger lesen",
"ui.readMore": "Weiterlesen",
"wfs.featuretype.notfound": "Kein passender Feature-Typ wurde im Dienst gefunden",
"wfs.geojsongml.notsupported": "Dieser Dienst unterstützt das GeoJSON- oder GML-Format nicht",
"wfs.unreachable.cors": "Der Dienst konnte aufgrund von CORS-Beschränkungen nicht erreicht werden",
Expand Down
2 changes: 2 additions & 0 deletions translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@
"tooltip.html.copy": "Copy HTML",
"tooltip.url.copy": "Copy URL",
"tooltip.url.open": "Open URL",
"ui.readLess": "Read less",
"ui.readMore": "Read more",
"wfs.featuretype.notfound": "No matching feature type was found in the service",
"wfs.geojsongml.notsupported": "This service does not support the GeoJSON or GML format",
"wfs.unreachable.cors": "The service could not be reached because of CORS limitations",
Expand Down
2 changes: 2 additions & 0 deletions translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@
"tooltip.html.copy": "",
"tooltip.url.copy": "",
"tooltip.url.open": "",
"ui.readLess": "",
"ui.readMore": "",
"wfs.featuretype.notfound": "",
"wfs.geojsongml.notsupported": "",
"wfs.unreachable.cors": "",
Expand Down
2 changes: 2 additions & 0 deletions translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@
"tooltip.html.copy": "Copier le HTML",
"tooltip.url.copy": "Copier l'URL",
"tooltip.url.open": "Ouvrir l'URL",
"ui.readLess": "Réduire",
"ui.readMore": "Lire la suite",
"wfs.featuretype.notfound": "La classe d'objet n'a pas été trouvée dans le service",
"wfs.geojsongml.notsupported": "Le service ne supporte pas le format GeoJSON ou GML",
"wfs.unreachable.cors": "Le service n'est pas accessible en raison de limitations CORS",
Expand Down
2 changes: 2 additions & 0 deletions translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@
"tooltip.html.copy": "",
"tooltip.url.copy": "",
"tooltip.url.open": "",
"ui.readLess": "",
"ui.readMore": "",
"wfs.featuretype.notfound": "",
"wfs.geojsongml.notsupported": "",
"wfs.unreachable.cors": "",
Expand Down
2 changes: 2 additions & 0 deletions translations/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@
"tooltip.html.copy": "",
"tooltip.url.copy": "",
"tooltip.url.open": "",
"ui.readLess": "",
"ui.readMore": "",
"wfs.featuretype.notfound": "",
"wfs.geojsongml.notsupported": "",
"wfs.unreachable.cors": "",
Expand Down
2 changes: 2 additions & 0 deletions translations/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@
"tooltip.html.copy": "",
"tooltip.url.copy": "",
"tooltip.url.open": "",
"ui.readLess": "",
"ui.readMore": "",
"wfs.featuretype.notfound": "",
"wfs.geojsongml.notsupported": "",
"wfs.unreachable.cors": "",
Expand Down
2 changes: 2 additions & 0 deletions translations/sk.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@
"tooltip.html.copy": "",
"tooltip.url.copy": "",
"tooltip.url.open": "",
"ui.readLess": "",
"ui.readMore": "",
"wfs.featuretype.notfound": "",
"wfs.geojsongml.notsupported": "",
"wfs.unreachable.cors": "",
Expand Down

0 comments on commit eef415d

Please sign in to comment.