Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lingui extract-experimental empty space after {} #1843

Closed
Shperung opened this issue Feb 1, 2024 · 2 comments
Closed

lingui extract-experimental empty space after {} #1843

Shperung opened this issue Feb 1, 2024 · 2 comments

Comments

@Shperung
Copy link

Shperung commented Feb 1, 2024

Describe the bug
I have dynamically data in text . After extract - empty space after {}
image

<Trans>The opening direction {din} means that the hinges are on the right when you open the door with your {direction}. </Trans>

Additional context

    "@lingui/format-json": "4.7.0",
    "@lingui/macro": "4.7.0",
    "@lingui/react": "4.7.0",

lingui.config.ts

import { formatter } from '@lingui/format-json';

export default {
  catalogs: [],
  locales: [
    'en',
    'uk',
    'de',
    'es',
    'fr',
    'it',
    'ar',
    'hi',
    'pl',
    'pt',
    'et',
    'lv',
    'lt',
    'sk',
    'ro',
    'hu',
    'cs',
    'hr',
    'bg',
    'da',
    'sv',
    'nl',
    'sl',
    'tr',
  ],
  format: formatter({ style: 'minimal' }),
  sourceLocale: 'en',
  fallbackLocales: {
    default: 'en',
  },
  formatOptions: {
    origins: false,
  },
  compileNamespace: 'ts',
  experimental: {
    extractor: {
      entries: [
        '<rootDir>/source/web/modules/**/*.lazy.screen.tsx',
      ],
      output: '<rootDir>/source/shared/locales/{entryName}/{locale}/messages',
      excludeExtensions: [
        'ico',
        'pot',
        'xliff',
        'woff2',
        'woff',
        'eot',
        'gif',
        'otf',
        'ttf',
        'mp4',
        'svg',
        'png',
        'css',
        'sass',
        'less',
        'jpg',
        'webp',
        'csv',
      ],
    },
  },
};
@Denysmogyliuk
Copy link

I have some issue

@semoal
Copy link
Contributor

semoal commented Feb 7, 2024

Duplicated of #1797 :)

@andrii-bodnar andrii-bodnar closed this as not planned Won't fix, can't repro, duplicate, stale Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants