Skip to content

arlas-wui-toolkit / Exports / LanguageSwitcherComponent

Class: LanguageSwitcherComponent

This component changes the lg parameter of ARLAS-wui url.

Implements

  • OnInit

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new LanguageSwitcherComponent()

Defined in

projects/arlas-toolkit/src/lib/components/language-switcher/language-switcher.component.ts:40

Properties

availablesLanguages

availablesLanguages: string[]

Input

: Angular

Description

List of available languages for translation

Defined in

projects/arlas-toolkit/src/lib/components/language-switcher/language-switcher.component.ts:36


currentLanguage

currentLanguage: string

Defined in

projects/arlas-toolkit/src/lib/components/language-switcher/language-switcher.component.ts:38

Methods

ngOnInit

ngOnInit(): void

Returns

void

Implementation of

OnInit.ngOnInit

Defined in

projects/arlas-toolkit/src/lib/components/language-switcher/language-switcher.component.ts:43


setLanguage

setLanguage(lang): void

Sets the given language in lg parameter of ARLAS-wui url

Parameters

Name Type Description
lang string Language name

Returns

void

Defined in

projects/arlas-toolkit/src/lib/components/language-switcher/language-switcher.component.ts:55