@qualtrics/plugin-ui-react-translations
v0.0.2
Published
The standard set of translations for @qualtrics/plugin-ui-react
Downloads
832
Maintainers
Keywords
Readme
Qualtrics Plugin React UI Translations
Overview
This library contains a standard set of translations for the Qualtrics Plugin React UI Component Library and the Qualtrics QDS Library
Installation
Install Library:
$ npm i @qualtrics/plugin-ui-react-translations
Install Qualtrics Plugin React UI:
$ npm i @qualtrics/plugin-ui-react
Basic Usage
import pluginUITranslations from '@qualtrics/plugin-ui-react-translations;
import {
languageCodeAdapter,
pluginUIProvider,
PipedTextSelect
} from "@qualtrics/plugin-ui-react";
const languageCode = languageCodeAdapter(<QUALTRICS_DEFINED_LANGUAGE>);
const translationsConfig = {
localizedText: pluginUITranslations[languageCode],
};
ReactDOM.render(
<PluginUIReact config={translationsConfig}>
<PipedTextSelect/>
</PluginUIReact>,
document.getElementById('root')
);