Localisation of all Glitchy Scratch components.
You can install this package with NPM as a dev dependency-
npm install --save-dev glitchyscratch-i18n
or simply as a dependency with-
npm install glitchyscratch-i18n
. You can also use Yarn-
yarn add glitchyscratch-i18n
. Optionally, can also build it from source using Git-
git clone https://github.com/Glitchy-Scratch/i18n.git
cd i18n
npm install
.
import locales, {localeData, isRtl} from 'glitchyscratch-i18n';
import editorMessages from 'glitchyscratch-i18n/locales/editor-messages';
locales
: currently supported locales for the Scratch projectisRtl
: function that returns true if the locale is one that is written right-to-leftlocaleData
: locale data for the supported locales, in the format accepted by addLocaleData required by react-intleditorMessages
: the actual message strings for all supported locales for a particular resource. editorMessages collects all the strings for the interface, extensions and paint-editor.