Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
fixed local change link (#622)
Browse files Browse the repository at this point in the history
* fixed local change link

* :/

* fixed lint err

* another lint!
  • Loading branch information
naveed-ahmad authored and mmahalwy committed Jan 30, 2017
1 parent c10a05d commit 5f1c32a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/LocaleSwitcher/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default class LocaleSwitcher extends Component {
<MenuItem
key={key}
className={key === this.state.currentLocale && 'active'} // NOTE: if you use key `active` it will make all dropdown active
onClick={() => this.handleLocaleClick(key)}
onClick={e => this.handleLocaleClick(key, e)}
href={`?local=${key}`}
>
{locales[key]}
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/setLocal.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ export default (req) => {

const localeData = require('../locale/' + currentLocal + '.js'); // eslint-disable-line

return localeData.messages;
return localeData.default.messages;
};
2 changes: 1 addition & 1 deletion src/locale/ur.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default {

'search.placeholder': 'تلاش کر یں',
'search.resultHeading': '{from}-{to} OF <span> {total} </span> SEARCH RESULTS FOR: <span>{query}</span>', // eslint-disable-line max-len
'search.error': 'معذرت، آپ کی تلاش کے ساتھ ایک خرابی پیش آگئی.',
'search.error': 'معذرت، آپ کی تلاش کے ساتھ ایک خرابی پیش آگئی ہے',
'search.nothing': 'تلاش کے لئے کچھ لکھئے',
'search.noResult': 'کوئی نتیجہ نہیں ملا',

Expand Down

0 comments on commit 5f1c32a

Please sign in to comment.