Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagets
import { getCoreTranslation } from "@openmrs/esm-framework";
 
const ErrorHeader = () => {
  return <h4>{getCoreTranslation("error", "Error")}</h4>;
};
Info

The Value of using the t Function: When working on O3 apps for the community Reference Application, using the t function is a key requirement to ensure your code strings will be included in our community Translation tool, Transifex.

For more about translation, see: How to Translate OpenMRS.