TagSpaces is an offline, open source, document manager with tagging support
fixing i18n in the onboarding
Ilian Sapundshievdf48c02242f7
diff --git a/app/components/AppOnboarding.js b/app/components/AppOnboarding.jsindex 4d0b08c0c..aabb972b9 100644--- a/app/components/AppOnboarding.js+++ b/app/components/AppOnboarding.js@@ -19,31 +19,19 @@import React, { Component } from 'react';import Joyride from 'react-joyride';-import i18n from './../services/i18n';+import i18n from '../services/i18n';class AppOnboarding extends Component {state = {- run: false,- steps: [- {- target: '[data-tid=createNewLocation]',- content: i18n.t('ns.common:welcomeContent'),- placement: 'bottom',- },- {- target: '[data-tid=aboutTagSpaces]',- content: 'Hello world',- placement: 'bottom',- },- ]+ run: false};componentDidMount() {- /* setTimeout(() => {+ setTimeout(() => {this.setState({- run: true,+ run: true});- }, 1000); */+ }, 1000);}callback = (data) => {@@ -51,8 +39,19 @@ class AppOnboarding extends Component {};render() {- const { steps, run } = this.state;-+ const { run } = this.state;+ const steps = [+ {+ target: '[data-tid=createNewLocation]',+ content: i18n.t('welcomeContent'),+ placement: 'bottom',+ },+ {+ target: '[data-tid=aboutTagSpaces]',+ content: 'Hello world',+ placement: 'bottom',+ },+ ];return (<Joyridesteps={steps}