How to use the react-intl-universal.options function in react-intl-universal

To help you get started, we’ve selected a few react-intl-universal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fontmoa / fontmoa / src / component / fontmanager / index.js View on Github external
openFontEditor = () => {

    let link = "simple-en.html";
    const locale = intl.options.currentLocale;

    if (locale.includes('cn')) {
      link = "simple-cn.html";
    } else if (locale.includes('ko')) {
      link = "simple.html";
    }

    const targetLink = 'http://www.fontmoa.com/editor/v1/' + link;
    shell.openExternal(targetLink);
  }
github fontmoa / fontmoa / src / component / emojimanager / fontlist / index.js View on Github external
render() {
        const currentLocale = intl.options.currentLocale ;
        const locales = intl.options.locales;
        const currentMessage = locales[currentLocale];

        return (
            <div>
                <div>
                    <input placeholder="{intl.get('emojimanager.fontlist.search.inputText.placeholder')}/" type="search">
                </div>
                <div>
                    <div>
                        <div>{intl.get('emojimanager.fontlist.category.title')}</div>                
                        {this.props.emojiKeys.map((emojiKey, index) =&gt; {
                            return this.createEmojiList(emojiKey, index, currentMessage)
                        })}
                    </div>
                    <div>
                        <div>{intl.get('emojimanager.fontlist.tag.title')}</div></div></div></div>
github fontmoa / fontmoa / src / component / emojimanager / fontlist / index.js View on Github external
render() {
        const currentLocale = intl.options.currentLocale ;
        const locales = intl.options.locales;
        const currentMessage = locales[currentLocale];

        return (
            <div>
                <div>
                    <input placeholder="{intl.get('emojimanager.fontlist.search.inputText.placeholder')}/" type="search">
                </div>
                <div>
                    <div>
                        <div>{intl.get('emojimanager.fontlist.category.title')}</div>                
                        {this.props.emojiKeys.map((emojiKey, index) =&gt; {
                            return this.createEmojiList(emojiKey, index, currentMessage)
                        })}
                    </div>
                    <div></div></div></div>

react-intl-universal

Internationalize React apps. Not only for React component but also for Vanilla JS.

BSD-3-Clause
Latest version published 6 days ago

Package Health Score

71 / 100
Full package analysis