Skip to content

Commit

Permalink
Merge pull request #179 from py7hon/master
Browse files Browse the repository at this point in the history
Add Indonesia Translation
  • Loading branch information
akameco authored Jan 16, 2019
2 parents 71a3ef2 + aa1439c commit 3430018
Show file tree
Hide file tree
Showing 6 changed files with 105 additions and 5 deletions.
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@
"contributions": [
"translation"
]
},
{
"login": "py7hon",
"name": "iqbal rifai",
"avatar_url": "https://avatars0.githubusercontent.com/u/29944979?v=4",
"profile": "https://natsuzora.dob.jp",
"contributions": [
"translation"
]
}
],
"repoType": "github"
Expand Down
2 changes: 1 addition & 1 deletion app/containers/Language/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class Language extends React.Component<Props> {
const app = electron.remote.app || electron.app
const sysLocale = app.getLocale().toLowerCase()

const locale = ['ja', 'zh', 'zh-tw'].includes(sysLocale)
const locale = ['id', 'ja', 'zh', 'zh-tw'].includes(sysLocale)
? sysLocale
: 'en'
this.props.changeLocale(locale)
Expand Down
1 change: 1 addition & 0 deletions app/containers/SettingModal/SettingModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export default class SettingFilterModal extends Component<Props, State> {
onChange={(ev, i, value) => onSelectLanguage(value)}
>
<MenuItem value={'ja'} primaryText="日本語" />
<MenuItem value={'id'} primaryText="Bahasa Indonesia" />
<MenuItem value={'en'} primaryText="English" />
<MenuItem value={'zh'} primaryText="中文" />
<MenuItem value={'zh-tw'} primaryText="正體中文" />
Expand Down
86 changes: 86 additions & 0 deletions app/i18n/id.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
components:
Dropdown:
logout: Keluar
setting: Settings
LoginModal:
login: Masuk
error: Gagal Masuk
password: Password
username: Username
errorInfo: Periksa Usename dan Password Anda.
loginLoading: Masuk...
UserDrawer:
tabManga: 'Manga ({count})'
tabIllust: 'Ilustrasi ({count})'
addColumn: Tambahkan ke Kolom
ColumnHeaderBookmark:
bookmarkFilter: Filter Bookmarks
containers:
SearchField:
users: pengguna di
search: Pencarian
keywordSearch: Cari menggunakan kata kunci
ColumnRanking:
day: Peringkat Harian
week: Peringkat Mingguan
month: Peringkat Bulanan
day_male: Peringkat Pria Populer
day_female: Peringkat Wanita Populer
week_rookie: Peringkat Pemula
week_original: Peringkat Asli
BoxContainer:
save: Simpan Gambar Asli
showUser: Tampilkan Info Pengguna
bookmark: Tambah bookmark
openPixiv: Buka Halaman Pixiv
privateBookmark: Tambahkan Bookmark Pribadi
SettingModal:
limit: Batasi akses
cache: Hapus cache (tidak aman)
r18Link: pixiv - r18
language: Bahasa
tagFilter: Tag filter
uiSetting: UI setting
showOnlyImg: Hanya tampilkan gambar
showCaption: Tampilkan Keterangan
r18FilterDesc: >-
Anda dapat menambahkan "R-18" dan "R-18G" ke dalam filter tag untuk menghapus konten R18
di klien ini,
atau tambahkan "-R-18 -R-18G" ke dalam kueri untuk menghapus konten R18 secara spesifik
pencarian.
Anda juga dapat mengubah batasan pada pengaturan akun Pixiv Anda di bawah,
yang akan berlaku secara global.
AddColumnModal:
new: Baru oleh ...
header: Pilih Kolom
public: Publik
history: Histori
ranking: Peringkat
private: Pribadi
bookmark: Bookmarks
r18ranking: Peringkat R-18
recommended: Rekomendasi untuk anda
ColumnFollow:
public: Mengikuti publik
private: Mengikuti pribadi
FollowButton:
follow: Mengikuti
unFollow: Berhenti mengikuti
following: Pengikut
ColumnHistory:
title: Histori
ColumnBookmark:
public: Bookmarks Publik
private: Bookmarks Pribadi
ColumnRankingR18:
day_r18: Peringkat Harian R-18
week_r18: Peringkat Mingguan R-18
week_r18g: Peringkat R-18 G
day_male_r18: Peringkat R-18 Pria
day_female_r18: Peringkat R-18 Wanita
AddNewColumnButton:
addColumn: Tambah Kolom
ColumnRecommended:
reccomended: Rekomendasi untuk anda
6 changes: 5 additions & 1 deletion app/i18n/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,26 @@ import { addLocaleData } from 'react-intl'
import jaLocaleData from 'react-intl/locale-data/ja'
import enLocaleData from 'react-intl/locale-data/en'
import zhLocaleData from 'react-intl/locale-data/zh'
import idLocaleData from 'react-intl/locale-data/id'
import zhtwLocaleData from './localedata-zhtw'

import enTranslationMessages from './en.yml'
import idTranslationMessages from './id.yml'
import jaTranslationMessages from './ja.yml'
import zhTranslationMessages from './zh.yml'
import zhtwTranslationMessages from './zh-TW.yml'

addLocaleData(enLocaleData)
addLocaleData(idLocaleData)
addLocaleData(jaLocaleData)
addLocaleData(zhLocaleData)
addLocaleData(zhtwLocaleData)

export const appLocales = ['en', 'ja', 'zh', 'zh-tw']
export const appLocales = ['en', 'id', 'ja', 'zh', 'zh-tw']

export const translationMessages = {
en: enTranslationMessages,
id: idTranslationMessages,
ja: jaTranslationMessages,
zh: zhTranslationMessages,
'zh-tw': zhtwTranslationMessages,
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![MIT License](https://img.shields.io/npm/l/nps.svg?style=flat-square)](./license)
[![Donate](https://img.shields.io/badge/%EF%BC%84-support-green.svg?style=flat-square)](http://amzn.asia/bO78HzR)
[![Code of Conduct](https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square)](./CODE_OF_CONDUCT.md)
[![All Contributors](https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat-square)](#contributors)
[![All Contributors](https://img.shields.io/badge/all_contributors-7-orange.svg?style=flat-square)](#contributors)

## Screenshot

Expand Down Expand Up @@ -89,8 +89,8 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore -->
| [<img src="https://avatars2.githubusercontent.com/u/4002137?v=4" width="100px;"/><br /><sub><b>akameco</b></sub>](http://akameco.github.io)<br />[💬](#question-akameco "Answering Questions") [💻](https://github.com/akameco/PixivDeck/commits?author=akameco "Code") [🎨](#design-akameco "Design") [⚠️](https://github.com/akameco/PixivDeck/commits?author=akameco "Tests") | [<img src="https://avatars0.githubusercontent.com/u/15041872?v=4" width="100px;"/><br /><sub><b>trnhoe</b></sub>](https://github.com/trnhoe)<br />[💻](https://github.com/akameco/PixivDeck/commits?author=trnhoe "Code") [🌍](#translation-trnhoe "Translation") | [<img src="https://avatars0.githubusercontent.com/u/14824064?v=4" width="100px;"/><br /><sub><b>鳶一雨音</b></sub>](https://github.com/TobiichiAmane)<br />[🌍](#translation-TobiichiAmane "Translation") | [<img src="https://avatars1.githubusercontent.com/u/16656689?v=4" width="100px;"/><br /><sub><b>Austin Huang</b></sub>](http://austinhuang.me)<br />[🌍](#translation-austinhuang0131 "Translation") | [<img src="https://avatars3.githubusercontent.com/u/3052342?v=4" width="100px;"/><br /><sub><b>sachin21</b></sub>](https://profile.sachin21.jp)<br />[💻](https://github.com/akameco/PixivDeck/commits?author=sachin21 "Code") | [<img src="https://avatars1.githubusercontent.com/u/9370547?v=4" width="100px;"/><br /><sub><b>maple</b></sub>](https://blog.maple3142.net/)<br />[🌍](#translation-maple3142 "Translation") |
| :---: | :---: | :---: | :---: | :---: | :---: |
| [<img src="https://avatars2.githubusercontent.com/u/4002137?v=4" width="100px;"/><br /><sub><b>akameco</b></sub>](http://akameco.github.io)<br />[💬](#question-akameco "Answering Questions") [💻](https://github.com/akameco/PixivDeck/commits?author=akameco "Code") [🎨](#design-akameco "Design") [⚠️](https://github.com/akameco/PixivDeck/commits?author=akameco "Tests") | [<img src="https://avatars0.githubusercontent.com/u/15041872?v=4" width="100px;"/><br /><sub><b>trnhoe</b></sub>](https://github.com/trnhoe)<br />[💻](https://github.com/akameco/PixivDeck/commits?author=trnhoe "Code") [🌍](#translation-trnhoe "Translation") | [<img src="https://avatars0.githubusercontent.com/u/14824064?v=4" width="100px;"/><br /><sub><b>鳶一雨音</b></sub>](https://github.com/TobiichiAmane)<br />[🌍](#translation-TobiichiAmane "Translation") | [<img src="https://avatars1.githubusercontent.com/u/16656689?v=4" width="100px;"/><br /><sub><b>Austin Huang</b></sub>](http://austinhuang.me)<br />[🌍](#translation-austinhuang0131 "Translation") | [<img src="https://avatars3.githubusercontent.com/u/3052342?v=4" width="100px;"/><br /><sub><b>sachin21</b></sub>](https://profile.sachin21.jp)<br />[💻](https://github.com/akameco/PixivDeck/commits?author=sachin21 "Code") | [<img src="https://avatars1.githubusercontent.com/u/9370547?v=4" width="100px;"/><br /><sub><b>maple</b></sub>](https://blog.maple3142.net/)<br />[🌍](#translation-maple3142 "Translation") | [<img src="https://avatars0.githubusercontent.com/u/29944979?v=4" width="100px;"/><br /><sub><b>iqbal rifai</b></sub>](https://natsuzora.dob.jp)<br />[🌍](#translation-py7hon "Translation") |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |

<!-- ALL-CONTRIBUTORS-LIST:END -->

Expand Down

0 comments on commit 3430018

Please sign in to comment.