1.2.0 • Published 5 years ago

@roelofjan-elsinga/angular-translator v1.2.0

Weekly downloads
9
License
MIT
Repository
github
Last release
5 years ago

Angular Translator

This is a version of angular-translate for AngularJS ported to Angular. This package can be used to extract strings from Angular templates and place them in .po files, just like angular-gettext. This is ported for usage in Angular, instead of AngularJS.

Usage in Webpack

plugins: [
    new AngularGetTextPlugin({
        compileTranslations: { //optional
            input: 'path/to/files/*.po',
            outputFolder: 'path/to/output',
            format: 'json' // or javascript
        },
        extractStrings: { //optional
            input: 'path/to/files/**/*.html',
            destination: 'path/to/strings/file/translations.pot',
            pluralAttribute: 'translateplural',
            contextAttribute: 'translatecontext',
            commentAttribute: 'translatecomment',
            attributes: ['translate', 'apptranslate']
        }
    }),
]
1.2.0

5 years ago

1.1.0

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago