Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

151
Views
Insert format/components between words in i18n-js

I'm using i18n-js in a React Native app, also Expo and expo-localization. Although the library provides interpolation for translated strings, I did not find a way to insert React or React Native components or styles between words to provide better formatting.

For example:

// en.js
// ...
{
  "bold": "A word will be <B>bold</B> inside this string."
}
    
// create the i18n string
const B = (props) => <Text style={{fontWeight: 'bold'}}>{props.children}</Text>
console.log( I18n.t("bold") );

Expected: A word will be bold inside this string

What I got: A word will be <B>bold</B> inside this string

How can I add styles to some translated words?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!