diff --git a/public/actions/LanguageActions.js b/public/actions/LanguageActions.js index de55b3c..88ad731 100644 --- a/public/actions/LanguageActions.js +++ b/public/actions/LanguageActions.js @@ -21,12 +21,9 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -import Language from './../language/Language'; - export const SET_LANGUAGE = "SET_LANGUAGE"; -export const LANGUAGES = Language.getLanguages(); -export function setLanguage(language) { +export const setLanguage = language => { return { type: SET_LANGUAGE, code: language diff --git a/public/components/footer/Footer.jsx b/public/components/footer/Footer.jsx index 4b41edc..393d653 100644 --- a/public/components/footer/Footer.jsx +++ b/public/components/footer/Footer.jsx @@ -27,28 +27,24 @@ import { NavLink } from 'react-router-dom'; import FooterStyles from './Footer.scss'; -import Language from '@public/language/Language'; +import { withLanguage } from '@public/language/Language'; import { PageBoundary } from '@components/page/Page'; -const FooterLink = (props) => { - let { title, className } = props; - return ( - - { Language.get(`footer.links.${title}`) } - - ); -} - const SITE_LAUNCH_TIMESTAMP = 1335830400000; +const FooterLink = props => { + let { title, className } = props; + return ; +}; + class Footer extends React.Component { constructor(props) { super(props); } render() { - let { className } = this.props; + let { className, lang } = this.props; return (