@breadstone-tools/localizator-foramt-po
v0.0.85
Published
Localizator foramt po files library
Readme
📦 @breadstone-tools/localizator-format-po
| Package Status | Source |
|----------------|--------|
| | tools/localizator/format-po |
(WIP) PO file support for the Localizator toolchain. Read, write, and transform PO translation files.
📁 Project Structure
Part of the monorepo mosaik
Package path: tools/localizator/format-po
Version: see npm
License: MIT
📦 Installation
yarn add @breadstone-tools/localizator-format-po
# or
npm install @breadstone-tools/localizator-format-po🔧 Usage
import { PoFileReader, PoFileParser } from '@breadstone-tools/localizator-format-po';
// Example: Read and parse a PO file
const reader = new PoFileReader(console, fileSystem);
const poContent = reader.readFile('./locales/messages.po');
const parser = new PoFileParser(console);
const result = parser.parse(poContent);⚙️ Features
- Read and parse PO files
- (Planned) Transform and serialize PO resources
- Integration with Localizator core
🛠 Recommendations
- Use for projects requiring gettext/PO file support.
- Integrate with Localizator CLI/app for unified workflows.
📦 Publishing
yarn nx run localizator-format-po:publish📄 License
MIT © Breadstone
