Comments (3)
The v5 behavior is correct. All indentation / whitespaces are left as-is without any cleaning. V4 version of swc plugin has v4 behavior of whitespace cleaning, so you will have mismatch during runtime/extraction.
This change is ported to swc plugin, but it's not released yet. I asked @andrii-bodnar to make a pre-release of lingui swc plugin.
from js-lingui.
Yeah, we're using the swc plugin. I'll try that out when the pre-release is out.
from js-lingui.
https://www.npmjs.com/package/@lingui/swc-plugin/v/5.0.0-next.0
from js-lingui.
Related Issues (20)
- Upgrade @lingui/cli's cli-table dependency
- Example of nextjs integration without internationalized routing HOT 1
- Support additional + bespoke metadata on messages HOT 5
- Migrate to the latest version of Lerna
- v5 experimental extractor esbuild "packages" config HOT 2
- Trans from @lingui/react/macro works with React.Key will print a warning message
- multi-line comment not formatted correctly HOT 1
- Provide a webpack.config or resolver option to the `experimental-extractor`
- [Idea] Use comments to define message placeholder names
- LinguiJS & Next.js standalone build not working HOT 3
- Monorepo: Per-package Lingui config requires `locales` key HOT 1
- Unable to integrate with the latest vite-react-swc template. HOT 6
- Update @lingui/cli to use glob version > 9 HOT 1
- NextJS 14.2.5 and Lingui 4.11.x issues following example app as outline HOT 1
- Lingui extract ignores babel config HOT 2
- Internal Server Error running nextjs-swc example with nodeLinker: pnp in .yarnrc.yml HOT 5
- Duplicate endlines are removed when using @lingui/macro HOT 1
- Allow comments from translators HOT 2
- Allow missing translations to be compiled/interpolated on production HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-lingui.