@laserfiche/lf-resource-library
Advanced tools
Comparing version
{ | ||
"name": "@laserfiche/lf-resource-library", | ||
"version": "5.0.1--preview-11959933322", | ||
"version": "5.0.1--preview-11980991387", | ||
"description": "a library containing resource files that can be used in conjunction with LfLocalizationService from `@laserfiche/lf-js-utils`", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -20,3 +20,3 @@ # Introduction | ||
`LfLocalizationService` is a service that handles internationalization and localization, mapping text to its corresponding translated texts in the selected language. `@laserfiche/lf-resource-library` provides language resources files in JSON that can be utlized by LfLocalizationService. | ||
`LfLocalizationService` is a service that handles internationalization and localization, mapping text to its corresponding translated texts in the selected language. `@laserfiche/lf-resource-library` provides language resources files in JSON that can be utilized by LfLocalizationService. | ||
@@ -47,7 +47,7 @@ **Install @laserfiche/lf-js-utils:** | ||
localizationService.setLanguage('es-MX'); | ||
await localizationService.initResourcesFromUrlAsync('https://cdn.jsdelivr.net/npm/@laserfiche/lf-resource-library@4/resources/laserfiche-base'); | ||
await localizationService.initResourcesFromUrlAsync('https://cdn.jsdelivr.net/npm/@laserfiche/lf-resource-library@5/resources/laserfiche-base'); | ||
let loading = localizationService.getString('LOADING'); // loading -> 'Cargando...' | ||
``` | ||
## [Icons](https://github.com/Laserfiche/lf-resource-library/blob/main/resources/icons/document-icons-documentation.md) | ||
## [Icons](https://github.com/Laserfiche/lf-resource-library/blob/HEAD/resources/icons/document-icons-documentation.md) | ||
@@ -58,3 +58,3 @@ [**Example Usages**] | ||
export function getDocumentIconUrlFromIconId(iconId: string): string { | ||
return `https://cdn.jsdelivr.net/npm/@laserfiche/lf-resource-library@4/resources/icons/document-icons.svg#${iconId}`; | ||
return `https://cdn.jsdelivr.net/npm/@laserfiche/lf-resource-library@5/resources/icons/document-icons.svg#${iconId}`; | ||
} | ||
@@ -65,6 +65,6 @@ ``` | ||
See CHANGELOG [here](https://github.com/Laserfiche/lf-resource-library/blob/4.x/CHANGELOG.md). | ||
See CHANGELOG [here](https://github.com/Laserfiche/lf-resource-library/blob/HEAD/CHANGELOG.md). | ||
## Contribution | ||
We welcome contributions and feedback. Please follow our [contributing guidelines](https://github.com/Laserfiche/lf-resource-library/blob/main/CONTRIBUTING.md). | ||
We welcome contributions and feedback. Please follow our [contributing guidelines](https://github.com/Laserfiche/lf-resource-library/blob/HEAD/CONTRIBUTING.md). |
362775
0