mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Adjustments for Travis CI
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
//load package for localization
|
||||
// load package for localization
|
||||
const i18n = new (require('i18n-2'))({
|
||||
// setup some locales - other locales default to the first locale
|
||||
locales: ['en', 'de', 'fr']
|
||||
});
|
||||
// setup some locales - other locales default to the first locale
|
||||
locales: ['en', 'de', 'fr'],
|
||||
extension: '.json'
|
||||
})
|
||||
|
||||
export default i18n;
|
||||
export default i18n
|
||||
|
||||
@@ -156,7 +156,7 @@ class Main extends React.Component {
|
||||
} else {
|
||||
i18n.setLocale('fr')
|
||||
}
|
||||
|
||||
|
||||
// Reload all data
|
||||
dataApi.init()
|
||||
.then((data) => {
|
||||
|
||||
@@ -180,7 +180,7 @@ class FolderItem extends React.Component {
|
||||
return (
|
||||
<div styleName='folderItem'>
|
||||
<div styleName='folderItem-left'>
|
||||
{i18n.__('Are you sure to ')} <span styleName='folderItem-left-danger'>{i18n.__(' delete')}</span> {i18n.__('this folder?')}
|
||||
{i18n.__('Are you sure to ')} <span styleName='folderItem-left-danger'>{i18n.__(' delete')}</span> {i18n.__('this folder?')}
|
||||
</div>
|
||||
<div styleName='folderItem-right'>
|
||||
<button styleName='folderItem-right-dangerButton'
|
||||
|
||||
@@ -147,7 +147,7 @@ class StoragesTab extends React.Component {
|
||||
|
||||
<div styleName='addStorage-body-section'>
|
||||
<div styleName='addStorage-body-section-label'>
|
||||
{i18n.__('Name')}
|
||||
{i18n.__('Name')}
|
||||
</div>
|
||||
<div styleName='addStorage-body-section-name'>
|
||||
<input styleName='addStorage-body-section-name-input'
|
||||
@@ -168,7 +168,7 @@ class StoragesTab extends React.Component {
|
||||
<option value='FILESYSTEM'>{i18n.__('File System')}</option>
|
||||
</select>
|
||||
<div styleName='addStorage-body-section-type-description'>
|
||||
{i18n.__('Setting up 3rd-party cloud storage integration:')}{' '}
|
||||
{i18n.__('Setting up 3rd-party cloud storage integration:')}{' '}
|
||||
<a href='https://github.com/BoostIO/Boostnote/wiki/Cloud-Syncing-and-Backup'
|
||||
onClick={(e) => this.handleLinkClick(e)}
|
||||
>{i18n.__('Cloud-Syncing-and-Backup')}</a>
|
||||
|
||||
@@ -156,7 +156,7 @@ class UiTab extends React.Component {
|
||||
<div styleName='group-header'>{i18n.__('Interface')}</div>
|
||||
|
||||
<div styleName='group-section'>
|
||||
{i18n.__('Interface Theme')}
|
||||
{i18n.__('Interface Theme')}
|
||||
<div styleName='group-section-control'>
|
||||
<select value={config.ui.theme}
|
||||
onChange={(e) => this.handleUIChange(e)}
|
||||
@@ -171,7 +171,7 @@ class UiTab extends React.Component {
|
||||
</div>
|
||||
|
||||
<div styleName='group-section'>
|
||||
{i18n.__('Language')}
|
||||
{i18n.__('Language')}
|
||||
<div styleName='group-section-control'>
|
||||
<select value={config.ui.language}
|
||||
onChange={(e) => this.handleUIChange(e)}
|
||||
@@ -223,7 +223,7 @@ class UiTab extends React.Component {
|
||||
|
||||
<div styleName='group-section'>
|
||||
<div styleName='group-section-label'>
|
||||
{i18n.__('Editor Theme')}
|
||||
{i18n.__('Editor Theme')}
|
||||
</div>
|
||||
<div styleName='group-section-control'>
|
||||
<select value={config.editor.theme}
|
||||
@@ -243,7 +243,7 @@ class UiTab extends React.Component {
|
||||
</div>
|
||||
<div styleName='group-section'>
|
||||
<div styleName='group-section-label'>
|
||||
{i18n.__('Editor Font Size')}
|
||||
{i18n.__('Editor Font Size')}
|
||||
</div>
|
||||
<div styleName='group-section-control'>
|
||||
<input styleName='group-section-control-input'
|
||||
@@ -256,7 +256,7 @@ class UiTab extends React.Component {
|
||||
</div>
|
||||
<div styleName='group-section'>
|
||||
<div styleName='group-section-label'>
|
||||
{i18n.__('Editor Font Family')}
|
||||
{i18n.__('Editor Font Family')}
|
||||
</div>
|
||||
<div styleName='group-section-control'>
|
||||
<input styleName='group-section-control-input'
|
||||
@@ -269,7 +269,7 @@ class UiTab extends React.Component {
|
||||
</div>
|
||||
<div styleName='group-section'>
|
||||
<div styleName='group-section-label'>
|
||||
{i18n.__('Editor Indent Style')}
|
||||
{i18n.__('Editor Indent Style')}
|
||||
</div>
|
||||
<div styleName='group-section-control'>
|
||||
<select value={config.editor.indentSize}
|
||||
|
||||
Reference in New Issue
Block a user