Provides tools for localization and delocalization of the currently navigated url taking into account the url localization configuration provided when importing the language integration module.
language/src/url-localization/services/url-localization.service.ts
Properties |
|
Methods |
|
constructor(config: UrlLocalizationConfig, urlReflection: UrlReflectionService, localizer: UrlLocalizer)
|
||||||||||||||||
Creates an instance of UrlLocalizationService. The instance and implementation depend on the strategy configured for url localization when importing the language integration module.
Parameters:
|
||||||||||||||||
Public delocalize |
delocalize()
|
Delocalizes the currently navigated url using the configured localization strategy and forces https if needed.
Returns:
string
The delocalized currently navigated url. |
Public localize | ||||||||
localize(lang: string)
|
||||||||
Localizes the currently navigated url using the configured localization strategy and forces https if needed.
Parameters:
Returns:
string
The localized currently navigated url. |
||||||||
Public Readonly localizer |
Type: UrlLocalizer
|
The url localizer which will actually do the localization work.
The instance and implementation depend on the strategy configured for url localization when importing the language integration module.
|