Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
8.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
quanglam2807 committed Aug 28, 2018
1 parent 54ce640 commit 0dcce6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "translatium",
"description": "Google Translate client for macOS & Windows",
"version": "8.6.0",
"version": "8.6.1",
"main": "public/electron.js",
"repository": "https://github.com/quanglam2807/translatium",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/constants/display-languages.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
vi: {
displayName: 'Tiếng Việt',
},
zh: {
zh_CN: {
displayName: '中文',
},
};
2 changes: 1 addition & 1 deletion src/helpers/get-default-lang-id.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import displayLanguages from '../constants/display-languages';
// strip country code from langId
// en-US => en / vi-vn => vi
const getLanguageCode = (langId) => {
const parts = langId.toLowerCase().split('-');
const parts = langId.toLowerCase().replace('_', '-').split('-');

return parts[0];
};
Expand Down

0 comments on commit 0dcce6d

Please sign in to comment.