File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 55 "dependencies" : {
66 "react" : " ^16.1.1" ,
77 "react-dom" : " ^16.1.1" ,
8- "react-multi-lang" : " ^0.2 .0" ,
8+ "react-multi-lang" : " ^1.0 .0" ,
99 "react-scripts" : " 1.0.17"
1010 },
1111 "scripts" : {
Original file line number Diff line number Diff line change 11import * as React from 'react'
22import logo from './logo.svg'
33import './App.css'
4- import { translate , setLanguage } from 'react-multi-lang'
4+ import { translate , setLanguage , getLanguage } from 'react-multi-lang'
55
66class App extends React . Component {
77 changeLang ( lang ) {
88 setLanguage ( lang )
99 }
1010 render ( ) {
11+ console . log ( getLanguage ( ) )
1112 return (
1213 < div className = "App" >
1314 < header className = "App-header" >
Original file line number Diff line number Diff line change @@ -5131,9 +5131,9 @@ react-error-overlay@^3.0.0:
51315131 version "3.0.0"
51325132 resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-3.0.0.tgz#c2bc8f4d91f1375b3dad6d75265d51cd5eeaf655"
51335133
5134- react-multi-lang@^0.2 .0 :
5135- version "0.2.1 "
5136- resolved "https://registry.yarnpkg.com/react-multi-lang/-/react-multi-lang-0.2.1. tgz#c073d8cc0ddbd65d0310e809511f7bb69a115d93 "
5134+ react-multi-lang@^1.0 .0 :
5135+ version "1.0.0 "
5136+ resolved "https://registry.yarnpkg.com/react-multi-lang/-/react-multi-lang-1.0.0. tgz#0e328d5b3a357f5c6203dd8f0323cceda216ccfd "
51375137 dependencies :
51385138 hoist-non-react-statics "^2.3.1"
51395139
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ export function setLanguage (lang: string) {
7373}
7474
7575export function getLanguage ( ) : string {
76- return ( language )
76+ return language
7777}
7878
7979export function t ( path : string , args ?: { [ string ] : string } ) : string {
You can’t perform that action at this time.
0 commit comments