Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sejas/qtranslatex-extractor-js
NPM package to Receive a string and return and object with each translation
https://github.com/sejas/qtranslatex-extractor-js
Last synced: 2 months ago
JSON representation
NPM package to Receive a string and return and object with each translation
- Host: GitHub
- URL: https://github.com/sejas/qtranslatex-extractor-js
- Owner: sejas
- Created: 2019-02-23T14:06:48.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-09T05:49:31.000Z (4 months ago)
- Last Synced: 2024-10-09T23:22:36.738Z (3 months ago)
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/qtranslatex-extractor
- Size: 275 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# qtranslatex-extractor-js
Library in tpyescript to help you to move a QtranslateX Wordpress Site into a WPML.
If your site is stucked in QtranslateX, then this is your solution to move your content.NPM Packate: [https://www.npmjs.com/package/qtranslatex-extractor](https://www.npmjs.com/package/qtranslatex-extractor)
## Demo
- You can try it live in: [https://sejas.github.io/qtranslatex-online/](https://sejas.github.io/qtranslatex-online/)
- The demo code is in this repo: [https://github.com/sejas/qtranslatex-online](https://github.com/sejas/qtranslatex-online)![Demo QtranslateX extractor](demo.png)
## How it works?:
Receive the qtranslate string and return an object with each translation.
Use it with NodeJS to automate your process.
Or in your frontend to show your text dinamically.```ts
import qtranslatexExtractor from 'qtranslatex-extractor'const translations = qtranslatexExtractor('[:en]Hello World ![:es]¡HolaMundo![:]')
```## Author
© Antonio Sejas
Feb 2019
MIT License