Skip to content

Releases: signavio/i18n

@signavio/i18n@5.0.1

15 Sep 08:36
Compare
Choose a tag to compare

Summary

  • Fixes the issue where the extract command did not work with replacements without context.

Example of replacements config json file without a context:

{
  "" : {
    "Old translation": "New translation without context",
  },
}

@signavio/i18n@5.0.0

13 Sep 11:50
Compare
Choose a tag to compare

Summary

  • Adds replacements feature
  • Fixes the issue where the replacement feature does not work correctly with the translation context.
  • Contains security fixes.

Breaking changes:

  • The replacement configuration now expects a slightly different format.
    Previously, the replacement json looked like
{
    "Old translation": "New translation",
    "Old translation2": "New translation2"
}

But now through this release, it is expected that the replacement json configs contain the context as a key.

{
  "" : {
    "Old translation": "New translation without context",
  },
  "some context": {
    "Old translation": "New translation with some context",
  }
}

This is also documented in the Read me.
Related PR:

@signavio/i18n - 4.0.1

19 Jan 14:53
Compare
Choose a tag to compare

Release 4.0.1

  • Adds fallback value which was previously handled by marked thereby fixing interpolation issues.
    Reference: PR

@signavio/i18n - 4.0.0

17 Jan 12:52
Compare
Choose a tag to compare

Changes within the release:

  • The CircleCI convenience images have been upgraded to use the next-gen images.
  • Includes vulnerability dependency fixes.

Breaking changes in marked:

  • Dropped support for Node 10
  • No longer actively supporting IE11

@signavio/i18n - v3.0.1

24 Aug 08:12
Compare
Choose a tag to compare

small fixes and improvements

@signavio/i18n - 3.0.0

07 Jul 05:03
Compare
Choose a tag to compare

Breaking Change:

1. Registry and the name of the i18n package has changed

There was a cut-off between version 2 and 3. Hence all versions <= 2.x will always be available under signavio-i18n and newer versions >= 3.x will only be available under @signavio/i18n. We also took responsibility to already deprecate the previous versions on NPM.

import { init, setLocale } from 'signavio-i18n'

will become:

import { init, setLocale } from '@signavio/i18n'

and the corresponding package.json should then look like this:

"dependencies": {
-    "signavio-i18n": "2.1.2",
+    "@signavio/i18n": "3.0.1",
}

2. Upgrade of certain dependencies

We have upgraded marked to version 0.7.0 in order to mitigate vulnerabilities therefor we had drop partial support IE11. Usually methods are polyfilled and should not create problems.


Minor:

Upgrading of various devDependencies in order to remove publicly disclosed vulnerabilities and furthermore looking into redesigning the development build of this project.

2.1.2

28 Jan 12:04
Compare
Choose a tag to compare

Bumped ini, elliptic and lodash to fix vulnerabilites

2.1.0

02 Apr 13:23
Compare
Choose a tag to compare

Features

  • Added interpolationPattern option to init to allow users to customize the placeholder syntax

2.0.1

24 Oct 15:37
Compare
Choose a tag to compare
  • fixes missing strings in the .pot file due to overwriting instead of appending to it (#38).

2.0.0

15 Oct 07:54
313d49f
Compare
Choose a tag to compare

Breaking changes

  • dropped support for babel@6
  • added support for babel@7