nucleartux / i18next-scanner-typescript Goto Github PK
View Code? Open in Web Editor NEWTypescript transform for i18next-scanner
License: MIT License
Typescript transform for i18next-scanner
License: MIT License
Hiya,
Love the project and can't wait using this. However, the instructions are a bit hard to digest, as copy pasting the configuration example (and my custom config) will result in an errorless output, but nothing will have been parsed. I'm using CRA with very little modifications and have a single .tsx
component with a useTranslation
hook that is either not detected, or nothing is happening.
Thanks
Hi. Looks like translations rendered with Trans
component are completely not scanned, at least they are not included in result.
I have tried different variants, but get no success at all.
After some debugging I think that this.parser.parseTransFromString(outputText)
probably do not accept outputText
, as it does not execute passed as 3rd arg optional callback.
Best regards
When I set extensions to extensions: ['.ts', '.tsx']
, scanner throws when attempting to transpile .d.ts
file.
I have used the satisfies
keyword, introduced in Typescript 5, in my code but this parser fails at it. I guess it's because the package installs typescript@3 with it. Maybe the pinned version should be relaxed?
I am not able to find the MIT license this package says it has. It is possible to add it as part of the repo?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.