1.0.34 • Published 3 years ago

xliff-reconcile v1.0.34

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

xliff-reconcile

This is an npm cli tool to sync the i18n xliff 1.2 files generated by Angular's i18n tool and java resource files. This idea was born from the need for translators whose process works with java resource files and not xliff. The 3 states that we will deal with are:

  • new
  • needs-translation: meaning strings that have been updated within the Angular project
  • translated: the string has been synced to the resource file and is waiting for the translation. Note: this seems to be an odd choice, but we are limited by the tools that we use to sync the translations
  • final: strings that have been translated via the resource file and merged back into the xliff file

The app will read the xliff file and resource file for a given language. 'new' strings will be added to the java resource file if not already there and set to 'x-in-translation'. For 'needs-translation' strings, the value in the resource file will be set to blank and the state set to 'x-in-translation'. For strings with state already set to 'x-in-translation', if a value exists in the resource file, it will be set in the xliff file.

Supports xliff 1.2 files and java resource files with utf-8 encoding.

The flow to publish is basically:

npm version patch

npm run build

npm publish

1.0.33

3 years ago

1.0.34

3 years ago

1.0.31

3 years ago

1.0.30

3 years ago

1.0.29

3 years ago

1.0.28

3 years ago

1.0.27

3 years ago

1.0.26

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago