Giter Club home page Giter Club logo

esgettext's People

Contributors

dependabot[bot] avatar gflohr avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

7iomka

esgettext's Issues

JSON Schema for `Catalog`

The only reason that @esgettext/runtime does not validate JSON catalogues against a schema is the size of the resulting package. In situations where the package size does not matter, it would be good to hook in better validation methods, for example using Ajv. For that purpose, a JSON Schema and a JSON Type Definition would be helpful.

Extract and Update-po Make Repository Dirty

Running npm run esgettext modifies the POT-Creation-Date of the pot and po files, even if nothing has changed.

Does GNU gettext behave the same? In that case, it's a DONTFIX.

Command `esgettext` does not work in dist

The bundled version crashes:

/path/to/node_modules/@esgettext/tools/dist/index.js:9
const runtime_1 = require("@esgettext/runtime");
^

Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/node_modules/@esgettext/runtime/dist/esgettext.cjs.js from /path/to/node_modules/@esgettext/tools/dist/index.js not supported.
esgettext.cjs.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename esgettext.cjs.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /path/to/node_modules/@esgettext/runtime/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).

at Object.<anonymous> (/path/to/node_modules/@esgettext/tools/dist/index.js:9:19) {

code: 'ERR_REQUIRE_ESM'
}

Node.js v20.11.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.