Skip to content

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jan 26, 2020

Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more here.

This PR contains the following updates:

Package Change Age Confidence
i18n 0.8.4 -> 0.15.1 age confidence
@types/i18n (source) 0.8.6 -> 0.13.12 age confidence

Release Notes

mashpie/i18n-node (i18n)

v0.15.1

Compare Source

v0.15.0: 0.15.0 - Feature

Compare Source

Added

New parser configuration option allows to change the default JSON parser to any other parser with same signature, ie:

const YAML = require('yaml')

/**
 * JSON.stringify() -> YAML.stringify()
 * JSON.parse() -> YAML.parse()
 */

i18n.configure({
  extension: '.yml',
  parser: YAML
})

replaces JSON with YAML, so locale files will now format as yaml files.

See https://github.com/mashpie/i18n-node#some-words-on-parser-option and https://github.com/mashpie/i18n-node/blob/master/test/i18n.configureParser.js

Kudos to @​mathiashsteffensen for providing the PR #​488

v0.14.2: - Bugfix

Compare Source

Fixed

Fixes #​493 - using i18n with a combination of retry and sync settings lead to a 'Maximum call stack size exceeded' exception due to an infinite loop while writing phrases to all locale files.

const i18n = new I18n({
    // [...]
    retryInDefaultLocale: true,
    syncFiles: true,
})

v0.14.1: - Maintenance

Compare Source

Fixed

  • upgrade all dev dependencies without breaking changes
  • upgrade all dependencies without breaking changes

This also updates to mocha 9.2.0 (mochajs/mocha#4814) which fixes GHSA-qrpm-p2h7-hrv2

v0.14.0: - Upgrade

Compare Source

Changed

v0.13.4: - Maintenance

Compare Source

Fixed

  • upgrade all dev dependencies without breaking changes
  • upgrade all dependencies without breaking changes

see aa60ac7, 3139881 and 4e6963f for details

Added

  • test directory traversal (#​486)

v0.13.3: - Maintenance

Compare Source

Fixed

  • upgrade transitive dev dependency of eslint, mocha, zombie to lodash@​4.17.21
  • upgrade transitive dev dependency of zombie to url-parse@​1.5.1
  • upgrade transitive dev dependency of eslint-plugin-import to hosted-git-info@​2.8.9

v0.13.2: - Maintenance

Compare Source

Fixed

  • moved devDeps from dependencies to devDependencies #​446
  • removed unused packages from all dependencies

v0.13.1: - Hotfix

Compare Source

Fixed

  • npx npm-force-resolutions failed #​445

Details

A preinstall script was added to force resolving specific versions of lodash and ajv. Those are sub-dependencies of zombie and its packages. Zombie is devDependency of i18n. But zombie still refers to older versions reported to vulnerable - so I decided to force fixed versions.

Of course that preinstall should count on any npm install i18n, it's renamed to force-resolutions so I can still resolve audit issues in dev while also supporting clean installs.

"scripts": {
  "preinstall": "npx npm-force-resolutions"
}

now reads as

"scripts": {
  "force-resolutions": "npx npm-force-resolutions"
}

And doesn't get triggered by npm install.

v0.13.0: - Feature Release

Compare Source

Added

  • new option retryInDefaultLocale as proposed by PR #​206
  • new option header as proposed by PRs #​390 and #​407
  • pre-commit hooks to ensure code-style (even on contributions)

Fixed

  • typos in README

Changed

  • tooling: eslint with standard.js & prettier presets replaces jshint

v0.12.0: - Feature Release

Compare Source

Added

  • backward compatible default to singleton with const i18n = require('i18n')
  • create an instance of i18n by const i18n = new I18n()

Example:

/**
 * require I18n with capital I as constructor
 */
const { I18n } = require("i18n");

/**
 * create a new instance with it's configuration
 */
const i18n = new I18n({
    locales:['en', 'de'],
    directory: __dirname + '/locales'
});

v0.11.1: - Maintenance

Compare Source

Fixed

  • dependabot bumbed minimist

Minimist is a sub-dependency of mocha and messageformat:

$ npm ls minimist
[email protected] 
├─┬ [email protected]
│ └─┬ [email protected]
│   └── [email protected]
└─┬ [email protected]
  └─┬ [email protected]
    └── [email protected]  deduped

v0.11.0: - Feature Release

Compare Source

Added

  • Fallbacks can use wildcards (#​361) by PR #​362
  • New mustache options to tweak tags and/or disable mustache parsing (#​436)

Fixed

v0.10.0: - Feature Release

Compare Source

Thanks to @​einfallstoll i18n got much more developer friendly by adding two extra configuration options for working with translation files catalogs.

Added

  • Adds support for priming i18n with static catalogs (PR #​432)
  • Adds support for custom callback/hook on missing translations thru missingKeyFn option ℗ #​433 )

Examples

staticCatalog

Instead of letting i18n load translations from a given directory you may now pass your js object right on configuration, ie:

// DEMO: quick add yaml support on your own
const yaml = require('js-yaml');
const fs   = require('fs');

// configure and load translations from different locations
i18n.configure({
  staticCatalog: {
    de: require('../../locales/de.json'),
    en: require('../../locales/wired-en-filename.js'),
    fr: yaml.safeLoad(fs.readFileSync('../../locales/yaml/fr/server.yml', 'utf8'));
  },
  defaultLocale: 'de'
})

This opens up for a ton of possible ways to handle translations in your very own desired way. But be warned: "Great power comes with great responsibility".

missingKeyFn

Want to get a warning on missing translations? Add missing translations with an indicator? Or even want to try an external service (like deepl.com) to provide an automated translated proposal of a missing phrase?

i18n.configure({
  missingKeyFn(locale, value) {
    console.warn(`missing translation of "${value}" in [${locale}]!`)
    return `${value}-[${locale}]`;
  },
  defaultLocale: 'de'
})

v0.9.1: - Housekeeping

Compare Source

Fixed

  • Catch race condition in parallel fs tasks (PR #​431)
  • Update packages, remove unused url

v0.9.0: - Feature Release

Compare Source

Added

  • Support for floats (as number or string) in __n() (#​305 )

v0.8.6

Compare Source

v0.8.5: - General Maintenance

Compare Source

Added

  • PR #​425 added support for WHATWG URL API urls

Fixed


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
Copy link
Author

renovate bot commented Jan 26, 2020

Branch automerge failure

This PR was configured for branch automerge, however this is not possible so it has been raised as a PR instead.


  • Branch has one or more failed status checks

@renovate renovate bot force-pushed the renovate/i18n-0.x branch from 978ed43 to c9661c5 Compare March 17, 2020 10:28
@renovate renovate bot changed the title fix(deps): update dependency i18n to v0.8.5 fix(deps): update dependency i18n to v0.8.6 Mar 17, 2020
@renovate renovate bot force-pushed the renovate/i18n-0.x branch from c9661c5 to 3a8078f Compare May 2, 2020 00:03
@renovate renovate bot changed the title fix(deps): update dependency i18n to v0.8.6 fix(deps): update dependency i18n to v0.9.0 May 2, 2020
@renovate renovate bot force-pushed the renovate/i18n-0.x branch from 3a8078f to 15516f1 Compare July 2, 2020 05:07
@renovate renovate bot changed the title fix(deps): update dependency i18n to v0.9.0 Update dependency i18n to v0.10.0 Jul 2, 2020
@renovate renovate bot force-pushed the renovate/i18n-0.x branch from 15516f1 to c05c581 Compare August 27, 2020 09:07
@renovate renovate bot changed the title Update dependency i18n to v0.10.0 Update dependency i18n to v0.13.2 Aug 27, 2020
@renovate renovate bot force-pushed the renovate/i18n-0.x branch from c05c581 to bf280b8 Compare October 29, 2020 05:07
@renovate renovate bot changed the title Update dependency i18n to v0.13.2 fix(deps): update dependency i18n to v0.13.2 Oct 29, 2020
@renovate renovate bot force-pushed the renovate/i18n-0.x branch from bf280b8 to bf69cab Compare December 9, 2020 17:02
@renovate renovate bot force-pushed the renovate/i18n-0.x branch from bf69cab to fe4092b Compare April 26, 2021 16:34
@renovate renovate bot force-pushed the renovate/i18n-0.x branch from fe4092b to e6e6df7 Compare May 9, 2021 23:02
@renovate renovate bot changed the title fix(deps): update dependency i18n to v0.13.2 fix(deps): update dependency i18n to v0.13.3 May 9, 2021
@renovate renovate bot force-pushed the renovate/i18n-0.x branch from e6e6df7 to 05f913a Compare October 18, 2021 15:11
@renovate renovate bot force-pushed the renovate/i18n-0.x branch from 05f913a to 89ae1b6 Compare March 7, 2022 10:49
@renovate renovate bot changed the title fix(deps): update dependency i18n to v0.13.3 fix(deps): update dependency i18n to v0.14.2 Mar 7, 2022
@renovate renovate bot force-pushed the renovate/i18n-0.x branch from 89ae1b6 to f1e4c83 Compare June 18, 2022 19:17
@renovate renovate bot changed the title fix(deps): update dependency i18n to v0.14.2 fix(deps): update dependency i18n to v0.15.0 Jun 18, 2022
@renovate renovate bot force-pushed the renovate/i18n-0.x branch from f1e4c83 to 47a4984 Compare September 25, 2022 17:34
@renovate renovate bot changed the title fix(deps): update dependency i18n to v0.15.0 fix(deps): update dependency i18n to v0.15.1 Sep 25, 2022
@renovate renovate bot force-pushed the renovate/i18n-0.x branch from 47a4984 to 6b3cd6c Compare November 20, 2022 20:39
@renovate renovate bot force-pushed the renovate/i18n-0.x branch from 6b3cd6c to bbbebfb Compare March 17, 2023 01:47
@renovate renovate bot force-pushed the renovate/i18n-0.x branch from bbbebfb to 1a72a3e Compare October 9, 2023 01:02
@renovate renovate bot force-pushed the renovate/i18n-0.x branch from 1a72a3e to ff333d5 Compare October 18, 2023 06:37
@renovate renovate bot force-pushed the renovate/i18n-0.x branch from ff333d5 to aeb230e Compare November 7, 2023 10:52
@renovate renovate bot force-pushed the renovate/i18n-0.x branch from aeb230e to 79a081e Compare November 21, 2023 00:53
@renovate renovate bot force-pushed the renovate/i18n-0.x branch 2 times, most recently from 357d68d to 637dbde Compare April 23, 2024 18:36
@renovate renovate bot force-pushed the renovate/i18n-0.x branch from 637dbde to 3d9a8ba Compare August 10, 2025 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants