
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@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 utilized 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@5/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@5/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`
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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.