0.3.0 • Published 6 years ago

xlfpackage v0.3.0

Weekly downloads
60
License
-
Repository
-
Last release
6 years ago

XLF Package

Loads an XLF package for manipulation.

Methods

getPackage

Returns the entire package. Format is:

[
    {
        langLoc: 'de/common',
        path: 'de/common/blahblah.xlf'
        strings: [
            {
                id: '',
                source: '',
                target: '',
                state: '',
                note: ''
            }
        ]
    },
    {
        langLoc: 'pt/br',
        path: 'pt/br/blahblah.xlf'
        strings: [
            {
                id: '',
                source: '',
                target: '',
                state: '',
                note: ''
            }
        ]
    }
]

getStrings onlyTranslated

Returns all the strings in the following format:

[
    {
        id: '55555555555',
        source: 'blah',
        allTranslated: false,
        langs: {
            'es/common': '',
            'de/common': ''
        }
    }
]

updateString

Updates the string with the given ID with an object matching the format of langs from a getString() object.

write path

Writes the xlf. Defaults to writing to the original package location.

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago

0.0.12

6 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago