Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@openmrs/esm-translations

Package Overview
Dependencies
Maintainers
13
Versions
494
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openmrs/esm-translations

O3 Framework module for translation support

latest
Source
npmnpm
Version
8.0.0
Version published
Weekly downloads
3.9K
-2.7%
Maintainers
13
Weekly downloads
 
Created
Source

@openmrs/esm-translations

This framework library supports translations that can be used throughout the O3 application.

Use translations with getCoreTranslation. The translations are in the core namespace.

Under the hood

Translation key-value pairs are kept in src/translations.ts. The keys in that file are used to generate the CoreTranslationKey type, which allows Typescript to tell developers whether a key is in the core translations or not. The values are used by the getCoreTranslation function, so no default needs to be provided.

A custom i18next-parser lexer is defined so that the extract-translations script pulls translation strings directly out of this translations.ts file.

Keywords

openmrs

FAQs

Package last updated on 29 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts