question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Research] osd translation issue

See original GitHub issue

[Issue - 1]

Seems a lot of react components which use <FormattedMessage> to translate are not working. (example)

Currently, we have two ways to translate the react components (did not research much on angular, since we will remove them sooner or later): 1) a <FormattedMessage> component 2) a global imported method i18n.translate.

So far the issues are:

  1. <FormattedMessage> component not working
  2. i18n.translate does not work on formatTime\Date\Plural etc.

In this research, I would like to investigate on two questions:

  1. why we need two duplicate ways to translate? can we remove one?
  2. why <FormattedMessage> component is not working? if we need it, how to fix it?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
joshuarrrrcommented, Jun 23, 2022

@ananzh Can we close this now? I think you made the necessary doc updates, right?

0reactions
ananzhcommented, May 19, 2022

Others:

If you see this below error or similar, it means you haven’t register your locale. You need to add it in packages/osd-i18n/src/core/locales.js. Screen Shot 2022-05-18 at 19 52 08

If you see this diff error or similar, it means something is missing from your translation file. You can get what is missing from the message. Just need to add it to the translation file. Screen Shot 2022-05-18 at 20 23 31

Read more comments on GitHub >

github_iconTop Results From Across the Web

Transcultural Validation of Ocular Surface Disease Index ...
Purpose: The purpose of the present study was to develop a transcultural OSDI questionnaire in Spanish for the Mexican population.
Read more >
Research, Development, Test, and Evaluation Appropriations
Applied research may translate promising basic research into solutions for broadly defined military needs, short of system development.
Read more >
Defense Research, Surveys, and Statistics Center ... - DMDC
DMDC maintains publically accessible surveys. Users of this site may view and print DoD Human Relations, Equal Opportunity and Financial Issues surveys.
Read more >
pharmacists' perceptions of occupational specific - CORE
(OSD): exploratory study of career and human resource perspectivesis my own ... Research problems and questions were elucidated via systematic ...
Read more >
Planning, Programming, Budgeting & Execution Process (PPBE)
In addition, the OSD staff and the Joint Staff can raise issues with selected portions of any POM, or any funding shortfalls in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found