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

103
Views
How to retrieve contents of message.json file with chrome.i18n web extension API

When using chrome's chrome.i18n API, the chrome.i18n.getMessage method retrieves only one message at a time.

const buttonText = chrome.i18n.getMessage('buttonText');

What I want is to update the popup UI when the popup opens with the localized contents of message.json file. Doing so requires me to know the message names used. Is there a method/technique similar to getMessage for retrieving all the contents of the message.json file at once?

Right now, I can only keep all the message names somewhere and retrieve each localized message individually like:


const messages = ["buttonText", "buttonTitle"];

messages.forEach((message) => {
  const messageText = chrome.i18n.getMessage(message);
  // Update UI
});

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!