How to use the actions.translate function in actions

To help you get started, we’ve selected a few actions 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 junlico / dragalia-lost / src / views / StatsCalc / StatsCol / StatsField / StatsAvatar.js View on Github external
render() {
    let { lang, image, name, statsKey, scale } = this.props;

    const field = getField(statsKey);
    const label = name ? name[lang] : translate(statsKey, lang);
    const cn = classNames('avatar center', { scale });
    return (
      <div>
        <img size="lg">
        <div>{label}</div>
      </div>
    );
  }
github junlico / dragalia-lost / src / views / StatsCalc / SetCol / SelectStats / StatsList / ListHeader.js View on Github external
{fields.map(f =&gt; {
        if (f === 'rarity') {
          return (
            <div>
              {translate('rarity', lang)}
            </div>
          );
        }

        return <div>;
      })}
    </div>
github junlico / dragalia-lost / src / views / SelectStats / ListHeader.jsx View on Github external
{fields.map((field) =&gt; {
          if (field === "rarity") {
            return (
              <div>
                {translate("rarity", lang)}
              </div>
            );
          }

          return (
            <div>
            </div>
          );
        })}
github junlico / dragalia-lost / src / views / StatsCalc / DetailsCol / StatsDetails.jsx View on Github external
{rows.map((row) =&gt; {
              let { HP = 0, STR = 0, might = 0 } = details[row] || {};
              return (
                <div>
                  <div>{translate(row, lang)}</div>
                  <div>{HP}</div>
                  <div>{STR}</div>
                  <div>{might}</div>
                </div>
              );
            })}
github junlico / dragalia-lost / src / views / StatsCalc / DetailCol / StatsDetail / StatsDetail.js View on Github external
rows.map(row =&gt; {
                    const { HP, STR, might } = details[row];
                    return (
                      
                        {translate(row, lang)}
                        {HP}
                        {STR}
                        {might}
                      
                    );
                  })}

actions

Actions for a resourceful controller, CRUD

MIT
Latest version published 10 years ago

Package Health Score

47 / 100
Full package analysis