mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-13 08:04:27 +02:00
Add translations for intro1 Add translations for intro2 Fix intro Add translations for intro3 Add translations for intro4 Fix intro - rebasing Add translations for rampup1 Add translations for level index add dialog translations Fix dialogs add transations over rebase module rebase add advances transations Add Strings file in intl Fix hit message Add translations to mixed module Fix mixed Add rampup1 Add rampup2 Add rampup3 Add rampup4 Add translations to move1 Add move2 Add remote1 Add remote6 Add fakeTeamwork Add fetch file Add fetchArgs fetch rebase Tracking source nothing Remote branches push many features Merge many feautures Pull Pull args push args Push args2 Fix erratas
112 lines
2.7 KiB
JavaScript
112 lines
2.7 KiB
JavaScript
var HelperBarView = require('../react_views/HelperBarView.jsx');
|
|
var Main = require('../app');
|
|
var React = require('react');
|
|
|
|
var log = require('../log');
|
|
|
|
var IntlHelperBarView = React.createClass({
|
|
|
|
propTypes: {
|
|
shown: React.PropTypes.bool.isRequired,
|
|
onExit: React.PropTypes.func.isRequired
|
|
},
|
|
|
|
render: function() {
|
|
return (
|
|
<HelperBarView
|
|
items={this.getItems()}
|
|
shown={this.props.shown}
|
|
/>
|
|
);
|
|
},
|
|
|
|
fireCommand: function(command) {
|
|
log.viewInteracted('intlSelect');
|
|
Main.getEventBaton().trigger('commandSubmitted', command);
|
|
this.props.onExit();
|
|
},
|
|
|
|
getItems: function() {
|
|
return [{
|
|
text: 'Git Branching',
|
|
testID: 'english',
|
|
onClick: function() {
|
|
this.fireCommand('locale en_US; levels');
|
|
}.bind(this)
|
|
}, {
|
|
text: '日本語版リポジトリ',
|
|
testID: 'japanese',
|
|
onClick: function() {
|
|
this.fireCommand('locale ja; levels');
|
|
}.bind(this)
|
|
}, {
|
|
text: 'Git 브랜치 배우기',
|
|
testID: 'korean',
|
|
onClick: function() {
|
|
this.fireCommand('locale ko; levels');
|
|
}.bind(this)
|
|
}, {
|
|
text: '学习 Git 分支',
|
|
testID: 'simplifiedChinese',
|
|
onClick: function() {
|
|
this.fireCommand('locale zh_CN; levels');
|
|
}.bind(this)
|
|
}, {
|
|
text: '學習 Git 分支',
|
|
testID: 'traditionalChinese',
|
|
onClick: function() {
|
|
this.fireCommand('locale zh_TW; levels');
|
|
}.bind(this)
|
|
}, {
|
|
text: 'español',
|
|
testID: 'spanish',
|
|
onClick: function() {
|
|
this.fireCommand('locale es_AR; levels');
|
|
}.bind(this)
|
|
}, {
|
|
text: 'português',
|
|
testID: 'portuguese',
|
|
onClick: function() {
|
|
this.fireCommand('locale pt_BR; levels');
|
|
}.bind(this)
|
|
}, {
|
|
text: 'français',
|
|
testID: 'french',
|
|
onClick: function() {
|
|
this.fireCommand('locale fr_FR; levels');
|
|
}.bind(this)
|
|
}, {
|
|
text: 'Deutsch',
|
|
testID: 'german',
|
|
onClick: function() {
|
|
this.fireCommand('locale de_DE; levels');
|
|
}.bind(this)
|
|
}, {
|
|
text: 'Русский',
|
|
testID: 'russian',
|
|
onClick: function() {
|
|
this.fireCommand('locale ru_RU; levels');
|
|
}.bind(this)
|
|
}, {
|
|
text: 'Українська',
|
|
testID: 'ukrainian',
|
|
onClick: function() {
|
|
this.fireCommand('locale uk; levels');
|
|
}.bind(this)
|
|
}, {
|
|
text: 'Galego',
|
|
testID: 'galician',
|
|
onClick: function() {
|
|
this.fireCommand('locale gl; levels');
|
|
}.bind(this)
|
|
}, {
|
|
icon: 'signout',
|
|
onClick: function() {
|
|
this.props.onExit();
|
|
}.bind(this)
|
|
}];
|
|
}
|
|
|
|
});
|
|
|
|
module.exports = IntlHelperBarView;
|