Giter Club home page Giter Club logo

Comments (9)

daniellockyer avatar daniellockyer commented on June 2, 2024 2

We've also run into this at Ghost - the commit above is the revert back to v8.8.0

from i18next-parser.

daniellockyer avatar daniellockyer commented on June 2, 2024

@karellm Is this issue a bug, or an intentional breaking change? We've had to pause all updates to i18next-parser due to this

from i18next-parser.

donskov avatar donskov commented on June 2, 2024

Such a problem also appeared. Any progress?

from i18next-parser.

crispclean avatar crispclean commented on June 2, 2024

Also bumped into this issue.

from i18next-parser.

moonray avatar moonray commented on June 2, 2024

Same issue. I had to downgrade to 8.8.0
Is there a breaking tweak to config necessary? Changelog did not mention anything.

from i18next-parser.

moonray avatar moonray commented on June 2, 2024

To follow up, I use a monorepo.
This is what my i18next-parser.config.js looks like

module.exports = {
  contextSeparator: '_',
  createOldCatalogs: false,
  defaultNamespace: 'translation',
  defaultValue: (locale, namespace, key) => {
    if (locale === 'en-US') {
      return key;
    }
    return '__NOT_TRANSLATED__';
  },
  indentation: 2,
  keepRemoved: false
  keySeparator: false,
  lexers: {
    js: ['JavascriptLexer'],
    ts: ['JavascriptLexer'],
    jsx: ['JsxLexer'],
    tsx: ['JsxLexer'],
    default: ['JavascriptLexer'],
  },
  lineEnding: 'auto',
  locales: ['en-US', 'nl-NL'],
  namespaceSeparator: false,
  output: '../../locales/$LOCALE.json',
  pluralSeparator: '____',
  input: '../*/src/**/*.{js,ts,jsx,tsx}',
  sort: false,
  skipDefaultValues: false,
  useKeysAsDefaultValue: false,
  verbose: false,
  failOnWarnings: false,
  customValueTemplate: null,
};

from i18next-parser.

karellm avatar karellm commented on June 2, 2024

It's not intentional but have limited time to look at it currently. If someone can open a PR that would be greatly appreciated.

from i18next-parser.

moonray avatar moonray commented on June 2, 2024

This seems to be working again in 8.13.0
@giovannetti-eric I would give this another go

from i18next-parser.

Related Issues (20)

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.