# @maxboeck/eleventy-plugin-gettext

> Eleventy plugin for gettext message translation and static extraction

Latest version **0.1.1** (published 2024-04-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @maxboeck/eleventy-plugin-gettext
pnpm add @maxboeck/eleventy-plugin-gettext
yarn add @maxboeck/eleventy-plugin-gettext
bun add @maxboeck/eleventy-plugin-gettext
```

Provides the command `eleventy-plugin-gettext`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2024-04-02 |
| First published | 2024-03-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 16 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Max Böck |
| Maintainers | maxboeck |

## Links

- npm: https://www.npmjs.com/package/@maxboeck/eleventy-plugin-gettext
- Repository: https://github.com/maxboeck/eleventy-plugin-gettext
- Homepage: https://github.com/maxboeck/eleventy-plugin-gettext#readme
- Issues: https://github.com/maxboeck/eleventy-plugin-gettext/issues
- npm.io page: https://npm.io/package/@maxboeck/eleventy-plugin-gettext

## Dependencies (7)

- [glob](https://npm.io/package/glob.md) ^10.3.12
- [printf](https://npm.io/package/printf.md) ^0.6.1
- [minimist](https://npm.io/package/minimist.md) ^1.2.8
- [node-gettext](https://npm.io/package/node-gettext.md) ^3.0.0
- [@11ty/eleventy](https://npm.io/package/@11ty/eleventy.md) ^2.0.1
- [gettext-parser](https://npm.io/package/gettext-parser.md) ^7.0.1
- [gettext-nunjucks](https://npm.io/package/gettext-nunjucks.md) ^0.0.2

## Recent versions

- 0.1.1 (latest) — 2024-04-02
- 0.1.0 — 2024-03-05

## README

# Eleventy Gettext Plugin

Plugin for gettext string extraction and translation.
Original code by Sebastien Gissinger: [eleventy-plugin-i18n-gettext](https://github.com/sgissinger/eleventy-plugin-i18n-gettext)

This modifies the original plugin to:

-   add a command line script for text extraction
-   generate a valid PO file from extracted messages
-   add `gettext` and `ngettext` as functions
-   remove moment / date handling

## Text Extraction

Run `npx eleventy-plugin-gettext --extract`

---
_Source: https://npm.io/package/@maxboeck/eleventy-plugin-gettext · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
