UNPKG

react-localization

Version:

Simple module to localize the React interface using the same syntax used in the ReactNativeLocalization module

21 lines (20 loc) 782 B
/** * Simple module to localize the React interface using the same syntax * used in the ReactNativeLocalization module * (https://github.com/stefalda/ReactNativeLocalization) * * Originally developed by Stefano Falda (stefano.falda@gmail.com) * * It uses a call to the Navigator/Browser object to get the current interface language, * then display the correct language strings or the default language (the first * one if a match is not found). * * This library has been refactored to use the newly created localized-strings package so to * unify the code and make it easier to mantain * * How to use: * Check the instructions at: * https://github.com/stefalda/react-localization */ import LocalizedStrings from 'localized-strings'; export default LocalizedStrings;