mirror of
https://github.com/vale981/Vulcan
synced 2025-03-07 02:21:43 -05:00
10 lines
299 B
JavaScript
10 lines
299 B
JavaScript
![]() |
import React, { Component } from 'react';
|
||
|
|
||
|
import { getSetting, Strings } from 'meteor/vulcan:lib';
|
||
|
|
||
|
const FormattedMessage = ({ id }) => {
|
||
|
const messages = Strings[getSetting('locale', 'en')] || {};
|
||
|
return <span className="i18n-message">{messages[id]}</span>
|
||
|
}
|
||
|
|
||
|
export default FormattedMessage;
|