Contains its own tooling that can work with your source code and extract all messages to dictionaries.
Questions tagged [linguijs]
24 questions
3
votes
2 answers
Lingui map translated content not showing
I am using Lingui for translation from English to Arabic. I am using an array of objects to display my content. The issue I have is that the Arabic translation for the mapped array is not showing. The codes are in separate files.
import { t } from…

sandy
- 67
- 1
- 4
3
votes
0 answers
Lingui and yup validator in NextJS
I have a setup with react-hook-form, yup in NextJS for form validation. Lingui for internationalization (followed this documentation). How to setup internationalization in yup validator which is supported by Lingui?
The problem here I am facing is…

Shreyas Chorge
- 127
- 1
- 6
3
votes
0 answers
lingui macros throw error with bable-plugin-macros
I'm using lingui package in my React project with CRA and
I get an error when using lingui/macro modules t method.
When I build project got webpack warning message.
Like this.
Critical dependency: the request of a dependency is an expression
This…

jaden0107
- 31
- 2
2
votes
1 answer
React antd LinguiJS not working on Modal method
I tried to translate the title in antd modal.confirm() but I always receive an error useLingui hook was used without I18nProvider. In other pages the translation is working fine.
Here is my code:
async function onLogout() {
Modal.confirm({
…

Corioste
- 65
- 8
2
votes
1 answer
What catalog format from webtranslateit.com to select for LinguiJS that will work with plurals?
I am trying to switch from i18next to LinguiJS due to big bundle size of i18next.
I use webtranslateit, which supports these formats.
I currently use i18next json v3 format on webtranslateit:
What format to select on webtranslateit that will work…

tech-escape
- 369
- 3
- 7
2
votes
0 answers
Programmatically compile languages with js-lingui
I recently tried to integrate js-lingui into my react project. The tricky part I can't get right is compiling my languages to js files.
My goal is as follows: I will assemble my languages trough some task running (gulp or webpack maybe). This is as…

Björn Gerdau
- 31
- 6
1
vote
1 answer
lingui library's macro t not working on react
I use the latest library for translation, but the macro t not working, the working fine.
To Reproduce
open codesandbox
yarn install
yarn start
click different language on the top of screen
bug description:
only content in…

hang
- 133
- 1
- 1
- 12
1
vote
1 answer
Is it possible to use linguijs in VUE application?
Hello is there a way how to use this library in VUE.js application?
Thank you
I have tried it in VUE application. Followed manual part how to use it in javascript application.
Included @lingui/core and all cli libs from manual.
But I faced these…

Martin
- 23
- 4
1
vote
2 answers
Translate static string messages in ReactJs using lingui.js
I am using lingui.js and following https://lingui.js.org/tutorials/react.html. I am able to setup the project and it runs fine also generates the PO file and translation content for content/element that are wrapped around Trans macro Send…

Yashpal S
- 299
- 4
- 16
1
vote
1 answer
ReactJS - How to create a fallback language function with localeStorage
I am having some trouble deciding on what to do with my language app. As you can see below I use "window.localStorage.setItem(LOCAL_STORAGE_KEY, locale);" to get the browser's locale. I have two languages es and en. But when someone has another…

Rakai
- 97
- 2
- 11
1
vote
2 answers
I faced with Invalid hook call on react
Here are my scripts that make a navigator for lingui-js.
I faced this error on my local:
×
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You…

Parsa Abangah
- 9
- 6
1
vote
1 answer
The Babel-core module not working with Lingui
I am new to the concept of Localizing my react-application. After doing some research online, It seems as if jsLingui is the best library to use and implement translation on my React application. Following tutorials from…

Nges Brian
- 479
- 1
- 8
- 22
0
votes
1 answer
Translate content from axios response
I use linguijs to handle translation in my Vite Application. I have a locale file in JSON for translated content. I use Axios to handle requests.
The linguijs extract the keys(English) for translation. I use Crowdin for the translation.
My issue is…

sandy
- 67
- 1
- 4
0
votes
0 answers
App remounts for non-english locales (@lingui/react, @lingui/core)
I’m working on a chat widget app, that has a series topics/questions in the form of radio buttons that when clicked show a different path of selections to choose from, eventually landing on things like FAQ articles or contact support options.
The…

Zack Carlson
- 89
- 1
- 6
0
votes
1 answer
Ant design typography's ellipsis tooltips usage with Lingui
This:
import { Typography } from 'antd'
import { Trans } from '@lingui/macro'
const TransWithEllipsis = () => {
return (
Message
…