
Security News
OpenGrep Restores Fingerprinting in JSON and SARIF Outputs
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
@laserfiche/lf-resource-library
Advanced tools
a library containing resource files that can be used in conjunction with LfLocalizationService from `@laserfiche/lf-js-utils`
Contains resource files that can be used in conjunction with LfLocalizationService from @laserfiche/lf-js-utils
.
@laserfiche/lf-js-utils
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.
Install @laserfiche/lf-js-utils:
npm install @laserfiche/lf-js-utils
Import LfLocalizationService:
import { LfLocalizationService } from "@laserfiche/lf-js-utils";
In node, import any fetch polyfill which suits your requirements: examples:
Example Usages:
let localizationService = new LfLocalizationService();
localizationService.setLanguage('es-MX');
await localizationService.initResourcesFromUrlAsync('https://cdn.jsdelivr.net/npm/@laserfiche/lf-resource-library@4/resources/laserfiche-base');
let loading = localizationService.getString('LOADING'); // loading -> 'Cargando...'
[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}`;
}
See CHANGELOG here.
We welcome contributions and feedback. Please follow our contributing guidelines.
FAQs
a library containing resource files that can be used in conjunction with LfLocalizationService from `@laserfiche/lf-js-utils`
The npm package @laserfiche/lf-resource-library receives a total of 7 weekly downloads. As such, @laserfiche/lf-resource-library popularity was classified as not popular.
We found that @laserfiche/lf-resource-library demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.