1.0.13 • Published 6 months ago

@opensea/i18n-extract v1.0.13

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

extract

@opensea/i18n-extract analyzes and extracts translation keys with their default values from source files. Extracted translation keys are meant to be uploaded to a translation management system for translation into other languages.

How?

Program looks for references to the useTranslation() and <Trans /> from next-translate using @babel/parser and @babel/traverse. Note that wrapping these into custom hooks/components will break the translation key extraction.

Getting started

Install

npm install --save-dev @opensea/i18n-extract

Usage

Published packages comes with a i18n-extract binary.

npm run i18n-extract --directory ./ --out locales/en-US

Local development

Running tests

yarn test
1.0.13

6 months ago

1.0.12

6 months ago

1.0.11

6 months ago

1.0.10

7 months ago

1.0.9

7 months ago

1.0.8

7 months ago

1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago

0.0.25

8 months ago

0.0.22

8 months ago

0.0.20

8 months ago

0.0.13

8 months ago

0.0.12

9 months ago

0.0.11

9 months ago

0.0.10

9 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago