@breadstone-tools/localizator-core
v0.0.206
Published
Localizator core library
Readme
📦 @breadstone-tools/localizator-core
| Package Status | Source |
|----------------|--------|
| | tools/localizator/core |
Core logic, resource models, analyzers, transformers, and formatters for the Localizator toolchain.
📁 Project Structure
Part of the monorepo mosaik
Package path: tools/localizator/core
Version: see npm
License: MIT
📦 Installation
yarn add @breadstone-tools/localizator-core
# or
npm install @breadstone-tools/localizator-core🔧 Usage
import { ResourceReader, ResourceTransformer, ResourceAnalyzer } from '@breadstone-tools/localizator-core';
// Example: Read and analyze resources
const reader = new ResourceReader(console, fileSystem);
const resources = reader.scanDirectory('./locales', 'json');
const analyzer = new ResourceAnalyzer(console);
const result = analyzer.executeTask('missing-translation', { resource: resources[0], parameters: {} });⚙️ Features
- Resource models for JSON, RESX, TypeScript, and more
- Transformers and serializers for resource conversion
- Analyzers for missing translations, key consistency, and more
- Presets for Angular, React, Vue, Lit, Stencil
🛠 Recommendations
- Use as the foundation for all Localizator-based tools and workflows.
- Integrate with the CLI/app package for end-to-end localization automation.
📦 Publishing
yarn nx run localizator-core:publish📄 License
MIT © Breadstone
