From 497fc1c82526856b04634c8a2bd34e62e805a93e Mon Sep 17 00:00:00 2001 From: pc Date: Wed, 16 Sep 2020 20:23:41 -0300 Subject: [PATCH 1/3] Update app translation text add hardcoded text found on the app to enUS locale file --- .../PreferencesModal/GeneralTab.tsx | 14 ++++++------ .../PreferencesModal/MarkdownTab.tsx | 4 ++-- .../PreferencesModal/PreferencesModal.tsx | 8 +++---- src/components/atoms/FormFolderSelector.tsx | 6 +++-- .../organisms/FSStorageCreateForm.tsx | 2 +- .../organisms/LocalStorageCreateForm.tsx | 2 +- src/components/organisms/Navigator.tsx | 6 +++-- .../organisms/SubscribeNewsLettersForm.tsx | 9 ++++---- src/components/pages/StorageCreatePage.tsx | 4 ++-- src/locales/enUS.ts | 22 +++++++++++++++++++ 10 files changed, 52 insertions(+), 25 deletions(-) diff --git a/src/components/PreferencesModal/GeneralTab.tsx b/src/components/PreferencesModal/GeneralTab.tsx index 605d133ae6..d2cd2183be 100644 --- a/src/components/PreferencesModal/GeneralTab.tsx +++ b/src/components/PreferencesModal/GeneralTab.tsx @@ -162,19 +162,19 @@ const GeneralTab = () => {
- Note List view + {t('preferences.notesView')} - - + +
- Enable auto sync + {t('preferences.autoSync')} { checked={preferences['general.enableAutoSync']} onChange={toggleEnableAutoSync} > - Enable auto sync + {t('preferences.autoSync')}
- Subfolders + {t('preferences.subfolders')} { checked={preferences['general.showSubfolderContents']} onChange={toggleShowSubfolderContents} > - Show content of all subfolders + {t('preferences.subfoldersView')}
diff --git a/src/components/PreferencesModal/MarkdownTab.tsx b/src/components/PreferencesModal/MarkdownTab.tsx index 9907e09e63..67f8608bf4 100644 --- a/src/components/PreferencesModal/MarkdownTab.tsx +++ b/src/components/PreferencesModal/MarkdownTab.tsx @@ -143,7 +143,7 @@ const MarkdownTab = () => {
- Export + {t('preferences.markdownExport')} { checked={preferences['markdown.includeFrontMatter']} onChange={toggleFrontMatterExport} > - Include Front Matter + {t('preferences.markdownExportOption')}
diff --git a/src/components/PreferencesModal/PreferencesModal.tsx b/src/components/PreferencesModal/PreferencesModal.tsx index 84a1af6dd0..0ceee1fd62 100644 --- a/src/components/PreferencesModal/PreferencesModal.tsx +++ b/src/components/PreferencesModal/PreferencesModal.tsx @@ -145,19 +145,19 @@ const PreferencesModal = () => { { setTab={setTab} /> { const [dialogIsOpen, setDialogIsOpen] = useState(false) + const {t} = useTranslation() const openDialog = useCallback(async () => { if (dialogIsOpen) { return @@ -50,7 +52,7 @@ const FormFolderSelector = ({ value, setValue }: FormFolderSelector) => { try { const result = await showOpenDialog({ properties: ['openDirectory', 'createDirectory'], - buttonLabel: 'Select Folder', + buttonLabel: t('folder.select'), defaultPath: getHomePath(), }) if (result.canceled) { @@ -74,7 +76,7 @@ const FormFolderSelector = ({ value, setValue }: FormFolderSelector) => { type='text' onClick={openDialog} readOnly - value={value.trim().length === 0 ? 'No location selected' : value} + value={value.trim().length === 0 ? t('folder.noLocationSelected') : value} /> Select Folder diff --git a/src/components/organisms/FSStorageCreateForm.tsx b/src/components/organisms/FSStorageCreateForm.tsx index 4f23f2145d..8faa8c9ae6 100644 --- a/src/components/organisms/FSStorageCreateForm.tsx +++ b/src/components/organisms/FSStorageCreateForm.tsx @@ -55,7 +55,7 @@ const FSStorageCreateForm = () => { onClick={createStorageCallback} disabled={name.trim().length === 0 || location.trim().length === 0} > - Create Storage + {t('storage.create')} diff --git a/src/components/organisms/LocalStorageCreateForm.tsx b/src/components/organisms/LocalStorageCreateForm.tsx index 594599bffb..b8200171d0 100644 --- a/src/components/organisms/LocalStorageCreateForm.tsx +++ b/src/components/organisms/LocalStorageCreateForm.tsx @@ -44,7 +44,7 @@ const LocalStorageCreateForm = () => { - Create Storage + {t('storage.create')} diff --git a/src/components/organisms/Navigator.tsx b/src/components/organisms/Navigator.tsx index 3b4fe3541a..7e7b43698c 100644 --- a/src/components/organisms/Navigator.tsx +++ b/src/components/organisms/Navigator.tsx @@ -1,4 +1,5 @@ import React, { useMemo, useCallback } from 'react' +import { useTranslation } from 'react-i18next' import { useRouter } from '../../lib/router' import { useDb } from '../../lib/db' import { entries } from '../../lib/db/utils' @@ -61,6 +62,7 @@ const Navigator = () => { const { popup } = useContextMenu() const { prompt } = useDialog() const { push } = useRouter() + const { t } = useTranslation() const storageEntries = useMemo(() => { return entries(storageMap) }, [storageMap]) @@ -117,9 +119,9 @@ const Navigator = () => { ))} {storageEntries.length === 0 && ( push('/app/storages')}> - There are no storages. + {t('navigator.noStorage')}
- Click here to create one. + {t('navigator.createStorage')}
)} diff --git a/src/components/organisms/SubscribeNewsLettersForm.tsx b/src/components/organisms/SubscribeNewsLettersForm.tsx index 0c51f5c8c0..4bde2283f6 100644 --- a/src/components/organisms/SubscribeNewsLettersForm.tsx +++ b/src/components/organisms/SubscribeNewsLettersForm.tsx @@ -1,4 +1,5 @@ import React, { useState, useCallback, FormEvent, ChangeEvent } from 'react' +import { useTranslation } from 'react-i18next' import { SectionHeader, SectionInput, @@ -13,7 +14,7 @@ const SubscribeNewsLettersForm = () => { const [status, setStatus] = useState('idle') const [errorMessage, setErrorMessage] = useState(null) const [email, setEmail] = useState('') - + const { t } = useTranslation() const subscribe = useCallback( async (event: FormEvent) => { event.preventDefault() @@ -44,9 +45,9 @@ const SubscribeNewsLettersForm = () => { return (
- Subscribe Update Notes + {t('newsletter.heading')} {status === 'done' ? ( - Thanks for the subscription! + {t('newsletter.subscribed')} ) : ( <> {errorMessage != null && ( @@ -63,7 +64,7 @@ const SubscribeNewsLettersForm = () => { type='submit' disabled={status === 'sending'} > - Subscribe + {t('newsletter.subscribe')}
diff --git a/src/components/pages/StorageCreatePage.tsx b/src/components/pages/StorageCreatePage.tsx index e075404a0e..fcffaf7ba2 100644 --- a/src/components/pages/StorageCreatePage.tsx +++ b/src/components/pages/StorageCreatePage.tsx @@ -41,11 +41,11 @@ const StorageCreatePage = () => { - Storage Type + {t('storage.type')} {appIsElectron && ( Date: Fri, 30 Oct 2020 07:18:47 +0900 Subject: [PATCH 2/3] Run formatter --- .../PreferencesModal/GeneralTab.tsx | 4 +- src/components/atoms/FormFolderSelector.tsx | 6 +- src/locales/enUS.ts | 4 +- src/locales/fi.ts | 348 +++++++++--------- src/locales/ruRU.ts | 18 +- 5 files changed, 196 insertions(+), 184 deletions(-) diff --git a/src/components/PreferencesModal/GeneralTab.tsx b/src/components/PreferencesModal/GeneralTab.tsx index d5968f366c..ad4b8d966f 100644 --- a/src/components/PreferencesModal/GeneralTab.tsx +++ b/src/components/PreferencesModal/GeneralTab.tsx @@ -180,7 +180,7 @@ const GeneralTab = () => {
- {t('preferences.notesView')} + {t('preferences.notesView')} {
- {t('preferences.autoSync')} + {t('preferences.autoSync')} { const [dialogIsOpen, setDialogIsOpen] = useState(false) - const {t} = useTranslation() + const { t } = useTranslation() const openDialog = useCallback(async () => { if (dialogIsOpen) { return @@ -76,7 +76,9 @@ const FormFolderSelector = ({ value, setValue }: FormFolderSelector) => { type='text' onClick={openDialog} readOnly - value={value.trim().length === 0 ? t('folder.noLocationSelected') : value} + value={ + value.trim().length === 0 ? t('folder.noLocationSelected') : value + } /> Select Folder diff --git a/src/locales/enUS.ts b/src/locales/enUS.ts index 565e85f95c..9a4e658e31 100644 --- a/src/locales/enUS.ts +++ b/src/locales/enUS.ts @@ -14,7 +14,7 @@ export default { 'general.networkError': 'Network Error', // Navigator - 'navigator.noStorage':'There are no storages', + 'navigator.noStorage': 'There are no storages', 'navigator.createStorage': 'Click here to create one.', // Newsletter @@ -128,7 +128,7 @@ export default { 'billing.addStorage': 'Add Extra Storage', 'editor.editor': 'Editor', - + // Preferences 'preferences.general': 'Preferences', diff --git a/src/locales/fi.ts b/src/locales/fi.ts index 8bd0e35903..da11edb7d7 100644 --- a/src/locales/fi.ts +++ b/src/locales/fi.ts @@ -1,173 +1,177 @@ export default { - translation: { - //General - 'general.error': 'Virhe', - 'general.cancel': 'Peruuta', - 'general.attachments': 'Liitteet', - 'general.trash': 'Roska', - 'general.allNotes': 'Kaikki muistiinpanot', - 'general.signin': 'Kirjaudu sisään', - 'general.signOut': 'Kirjaudu ulos', - 'general.save': 'Tallenna', - 'general.default': 'Oletus', - 'general.networkError': 'Verkkovirhe', - - // Storage - 'storage.storage': 'Tallennustila', - 'storage.name': 'Tallennustilan nimi', - 'storage.noStorage': 'Ei tallennustiloja', - 'storage.create': 'Luo tallennustila', - 'storage.edit': 'Muokkaa tallennustilaa', - 'storage.rename': 'Uudelleennimeä tallennustila', - 'storage.renameMessage': 'Syötä uusi tallennustilan nimi', - 'storage.remove': 'Poista tallennustila', - 'storage.removeMessage': - 'Varoitus! Tämä poistaa kaikki muistiinpanosi, jotka ovat tallennettuja tähän sijaintiin.', - 'storage.delete': 'Poista tallennustila {{storage}}', - 'storage.move': 'Siirrä muistiinpano', - 'storage.moveTitle': 'Siirrä muistiinpano toiseen tallennustilaan', - 'storage.moveMessage': - 'Yrität siirtää muistiinpanoa toiseen tallennustilaan.', - 'storage.copy': 'Kopioi muistiinpano', - 'storage.typeLocal': 'Paikallinen', - 'storage.typeCloud': 'Pilvi', - 'storage.needSignIn': 'Sinun täytyy kirjautua sisään luodaksesi pilvitallennustila.', - 'storage.syncDate': 'Viimeksi synkronoitu ', - - //Folder - 'folder.folder': 'Kansio', - 'folder.create': 'Uusi kansio', - 'folder.rename': 'Uudelleennimeä kansio', - 'folder.renameMessage': - 'Kirjoita uuden kansion nimi, jokainen muistiinpano ja alakansio päivitetään myös.', - 'folder.renameErrorMessage': 'Et voinut uudelleennimetä kansiota', - 'folder.remove': 'Poista kansio', - 'folder.removeMessage': 'Kaikki muistiinpanot ja alakansiot poistetaan myös.', - - //Tag - 'tag.tags': 'Tunnisteet', - 'tag.add': 'Lisää tunniste', - 'tag.remove': 'Poista tunniste', - 'tag.removeX': 'Poista #{{tag}}', - 'tag.removeMessage': 'Tunniste irroitetaan kaikista muistiinpanoista.', - - //Note - 'note.duplicate': 'Kopio', - 'note.delete': 'Poista', - 'note.delete2': 'Poista muistiinpano', - 'note.deleteMessage': 'Muistiinpano poistetaan pysyvästi', - 'note.empty': 'Tyhjä muistiinpano', - 'note.unselect': 'Muistiinpanoa ei ole valittu', - 'note.search': 'Etsi muistiinpanoista', - 'note.nothing': 'Ei muistiinpanoja', - 'note.nothingMessage': 'Muistiinpanoja ei löytynyt.', - 'note.noTitle': 'Ei otsikkoa', - 'note.date': 'sitten', - 'note.createKeyOr': 'tai', - 'note.createKey': 'N', - 'note.createKeyMac': 'Macilla', - 'note.createKeyWinLin': 'Windowsilla/Linuxilla', - 'note.createkeymessage1': 'Luodaksesi muistiinpanon, paina ', - 'note.createkeymessage2': 'Valitse tallennustila', - 'note.createkeymessage3': 'luoda uusi muistiinpano', - 'note.restore': 'Palauta', - 'note.edit': 'Muokkaa', - 'note.splitView': 'Jaa näkymä', - 'note.preview': 'Esinäkymä', - 'note.trash': 'Roska', - 'note.export': 'Vie', - - //Bookmark - 'bookmark.remove': 'Poista kirjanmerkki', - 'bookmark.add': 'Kirjanmerkki', - - //About - 'about.about': 'Tietoja', - 'about.boostnoteDescription': - 'Avoimen ohjelmiston mustiinpanosovellus kaltaisillesi ohjelmoijille.', - 'about.website': 'Virallinen nettisivu', - 'about.boostWiki': 'Edistä muistiinpanoja tiimille', - 'about.platform': 'Alustojen välinen', - 'about.community': 'Yhteisö', - 'about.github': 'GitHub-arkisto', - 'about.bounty': 'IssueHunt palkkio', - 'about.blog': 'Blogi', - 'about.slack': 'Slack Ryhmä', - 'about.twitter': 'Twitter Käyttäjä', - 'about.facebook': 'Facebook Ryhmä', - 'about.reddit': 'Reddit', - - //Billing - 'billing.billing': 'Laskutus', - 'billing.message': 'Kirjaudu sisään päivittääksesi sopimustasi.', - 'billing.basic': 'Perus', - 'billing.current': 'Nykyinen', - 'billing.premium': 'Premium', - 'billing.price': '$3/kuukaudessa (USD) *', - 'billing.browser': 'Selainsovellus', - 'billing.desktop': 'Työpöytäsovellus (Mac/Windows/Linux)', - 'billing.mobile': 'Mobiilisovellus (iOS/Android)', - 'billing.sync': 'Useiden laitteiden synkronointi', - 'billing.local': 'Paikallinen tallennustila', - 'billing.cloud': 'Pilvitallennustila', - 'billing.storageSize': 'Pilvitallennustilan koko', - 'billing.addStorageDescription': - '* Jos tarvitset lisää pilvitallennustilaa, voit aina lisätä sitä maksamalla $5 (USD) jokaista 5GT kohti. Klikkaa "Lisää tallennustilan määrää" nappia alhaalla.', - 'billing.addStorage': 'Lisää tallennustilan määrää', - - // Preferences - 'preferences.general': 'Valinnat', - - // Preferences GeneralTab - 'preferences.account': 'Käyttäjä', - 'preferences.addAccount': 'Kirjaudu sisään', - 'preferences.loginWorking': 'Kirjautuu sisään...', - 'preferences.interfaceLanguage': 'Käyttöliittymän kieli', - 'preferences.applicationTheme': 'Sovellusteema', - 'preferences.auto': 'Automaattinen', - 'preferences.light': 'Kirkas', - 'preferences.dark': 'Pimeä', - 'preferences.sepia': 'Seepia', - 'preferences.solarizedDark': 'Solarisoitu pimeä', - 'preferences.noteSorting': 'Muistiinpanojen järjestely', - 'preferences.dateUpdated': 'Päivitetty', - 'preferences.dateCreated': 'Luotu', - 'preferences.title': 'Otsikko', - 'preferences.analytics': 'Analytiikka', - 'preferences.analyticsDescription1': - 'Boostnote kerää anonyymiä dataa sovelluksen parantamista varten ja eikä ehdottomasti henkilökohtaisia tietoja tai muistiinpanojen sisältöä. Githubista näkee miten se toimii.', - 'preferences.analyticsDescription2': - 'Voit valita, että haluatko ottaa asetuksen päälle vai pois.', - 'preferences.analyticsLabel': 'Pistä analytiikka päälle parantaaksesi Boostnotea', - 'preferences.displayTutorialsLabel': 'Ohjeet ja UKK', - - // Preferences EditorTab - 'preferences.editorTheme': 'Editorin teema', - 'preferences.editorFontSize': 'Editorin fonttikoko', - 'preferences.editorFontFamily': 'Editorin fonttiperhe', - 'preferences.editorIndentType': 'Editorin sisennystyyppi', - 'preferences.tab': 'Sarkain', - 'preferences.spaces': 'Välilyöntejä', - 'preferences.editorIndentSize': 'Editorin sisennyskoko', - 'preferences.editorKeymap': 'Editorin avainkartta', - 'preferences.editorPreview': 'Editorin esikatselu', - - // Preferences MarkdownTab - 'preferences.previewStyle': 'Esikatsele tyyliä', - 'preferences.markdownCodeBlockTheme': 'Koodilohko teema', - 'preferences.defaultTheme': 'Käytä oletusteemaa', - 'preferences.markdownPreview': 'Markdown esikatselu', - - // Preferences ImportTab - 'preferences.import': 'Tuo', - 'preferences.description': 'Tuo .cson tiedostoja vanhasta Boostnotesta.', - 'preferences.importFlow1': '1. Avaa vanha Boostnote kansio tietokoneellasi.', - 'preferences.importFlow2': - '2. Raahaa ja tiputa .cson tiedostot alla olevaan lomakkeeseen.', - 'preferences.importFlow3': - '3. Valitse tallennustila ja kansio johon haluat siirtää vanhan datasi.', - 'preferences.importFlow4': '4. Lähetä!', - 'preferences.importRemove': 'poista', - 'preferences.importUpload': 'Lähetä', - }, - } + translation: { + //General + 'general.error': 'Virhe', + 'general.cancel': 'Peruuta', + 'general.attachments': 'Liitteet', + 'general.trash': 'Roska', + 'general.allNotes': 'Kaikki muistiinpanot', + 'general.signin': 'Kirjaudu sisään', + 'general.signOut': 'Kirjaudu ulos', + 'general.save': 'Tallenna', + 'general.default': 'Oletus', + 'general.networkError': 'Verkkovirhe', + + // Storage + 'storage.storage': 'Tallennustila', + 'storage.name': 'Tallennustilan nimi', + 'storage.noStorage': 'Ei tallennustiloja', + 'storage.create': 'Luo tallennustila', + 'storage.edit': 'Muokkaa tallennustilaa', + 'storage.rename': 'Uudelleennimeä tallennustila', + 'storage.renameMessage': 'Syötä uusi tallennustilan nimi', + 'storage.remove': 'Poista tallennustila', + 'storage.removeMessage': + 'Varoitus! Tämä poistaa kaikki muistiinpanosi, jotka ovat tallennettuja tähän sijaintiin.', + 'storage.delete': 'Poista tallennustila {{storage}}', + 'storage.move': 'Siirrä muistiinpano', + 'storage.moveTitle': 'Siirrä muistiinpano toiseen tallennustilaan', + 'storage.moveMessage': + 'Yrität siirtää muistiinpanoa toiseen tallennustilaan.', + 'storage.copy': 'Kopioi muistiinpano', + 'storage.typeLocal': 'Paikallinen', + 'storage.typeCloud': 'Pilvi', + 'storage.needSignIn': + 'Sinun täytyy kirjautua sisään luodaksesi pilvitallennustila.', + 'storage.syncDate': 'Viimeksi synkronoitu ', + + //Folder + 'folder.folder': 'Kansio', + 'folder.create': 'Uusi kansio', + 'folder.rename': 'Uudelleennimeä kansio', + 'folder.renameMessage': + 'Kirjoita uuden kansion nimi, jokainen muistiinpano ja alakansio päivitetään myös.', + 'folder.renameErrorMessage': 'Et voinut uudelleennimetä kansiota', + 'folder.remove': 'Poista kansio', + 'folder.removeMessage': + 'Kaikki muistiinpanot ja alakansiot poistetaan myös.', + + //Tag + 'tag.tags': 'Tunnisteet', + 'tag.add': 'Lisää tunniste', + 'tag.remove': 'Poista tunniste', + 'tag.removeX': 'Poista #{{tag}}', + 'tag.removeMessage': 'Tunniste irroitetaan kaikista muistiinpanoista.', + + //Note + 'note.duplicate': 'Kopio', + 'note.delete': 'Poista', + 'note.delete2': 'Poista muistiinpano', + 'note.deleteMessage': 'Muistiinpano poistetaan pysyvästi', + 'note.empty': 'Tyhjä muistiinpano', + 'note.unselect': 'Muistiinpanoa ei ole valittu', + 'note.search': 'Etsi muistiinpanoista', + 'note.nothing': 'Ei muistiinpanoja', + 'note.nothingMessage': 'Muistiinpanoja ei löytynyt.', + 'note.noTitle': 'Ei otsikkoa', + 'note.date': 'sitten', + 'note.createKeyOr': 'tai', + 'note.createKey': 'N', + 'note.createKeyMac': 'Macilla', + 'note.createKeyWinLin': 'Windowsilla/Linuxilla', + 'note.createkeymessage1': 'Luodaksesi muistiinpanon, paina ', + 'note.createkeymessage2': 'Valitse tallennustila', + 'note.createkeymessage3': 'luoda uusi muistiinpano', + 'note.restore': 'Palauta', + 'note.edit': 'Muokkaa', + 'note.splitView': 'Jaa näkymä', + 'note.preview': 'Esinäkymä', + 'note.trash': 'Roska', + 'note.export': 'Vie', + + //Bookmark + 'bookmark.remove': 'Poista kirjanmerkki', + 'bookmark.add': 'Kirjanmerkki', + + //About + 'about.about': 'Tietoja', + 'about.boostnoteDescription': + 'Avoimen ohjelmiston mustiinpanosovellus kaltaisillesi ohjelmoijille.', + 'about.website': 'Virallinen nettisivu', + 'about.boostWiki': 'Edistä muistiinpanoja tiimille', + 'about.platform': 'Alustojen välinen', + 'about.community': 'Yhteisö', + 'about.github': 'GitHub-arkisto', + 'about.bounty': 'IssueHunt palkkio', + 'about.blog': 'Blogi', + 'about.slack': 'Slack Ryhmä', + 'about.twitter': 'Twitter Käyttäjä', + 'about.facebook': 'Facebook Ryhmä', + 'about.reddit': 'Reddit', + + //Billing + 'billing.billing': 'Laskutus', + 'billing.message': 'Kirjaudu sisään päivittääksesi sopimustasi.', + 'billing.basic': 'Perus', + 'billing.current': 'Nykyinen', + 'billing.premium': 'Premium', + 'billing.price': '$3/kuukaudessa (USD) *', + 'billing.browser': 'Selainsovellus', + 'billing.desktop': 'Työpöytäsovellus (Mac/Windows/Linux)', + 'billing.mobile': 'Mobiilisovellus (iOS/Android)', + 'billing.sync': 'Useiden laitteiden synkronointi', + 'billing.local': 'Paikallinen tallennustila', + 'billing.cloud': 'Pilvitallennustila', + 'billing.storageSize': 'Pilvitallennustilan koko', + 'billing.addStorageDescription': + '* Jos tarvitset lisää pilvitallennustilaa, voit aina lisätä sitä maksamalla $5 (USD) jokaista 5GT kohti. Klikkaa "Lisää tallennustilan määrää" nappia alhaalla.', + 'billing.addStorage': 'Lisää tallennustilan määrää', + + // Preferences + 'preferences.general': 'Valinnat', + + // Preferences GeneralTab + 'preferences.account': 'Käyttäjä', + 'preferences.addAccount': 'Kirjaudu sisään', + 'preferences.loginWorking': 'Kirjautuu sisään...', + 'preferences.interfaceLanguage': 'Käyttöliittymän kieli', + 'preferences.applicationTheme': 'Sovellusteema', + 'preferences.auto': 'Automaattinen', + 'preferences.light': 'Kirkas', + 'preferences.dark': 'Pimeä', + 'preferences.sepia': 'Seepia', + 'preferences.solarizedDark': 'Solarisoitu pimeä', + 'preferences.noteSorting': 'Muistiinpanojen järjestely', + 'preferences.dateUpdated': 'Päivitetty', + 'preferences.dateCreated': 'Luotu', + 'preferences.title': 'Otsikko', + 'preferences.analytics': 'Analytiikka', + 'preferences.analyticsDescription1': + 'Boostnote kerää anonyymiä dataa sovelluksen parantamista varten ja eikä ehdottomasti henkilökohtaisia tietoja tai muistiinpanojen sisältöä. Githubista näkee miten se toimii.', + 'preferences.analyticsDescription2': + 'Voit valita, että haluatko ottaa asetuksen päälle vai pois.', + 'preferences.analyticsLabel': + 'Pistä analytiikka päälle parantaaksesi Boostnotea', + 'preferences.displayTutorialsLabel': 'Ohjeet ja UKK', + + // Preferences EditorTab + 'preferences.editorTheme': 'Editorin teema', + 'preferences.editorFontSize': 'Editorin fonttikoko', + 'preferences.editorFontFamily': 'Editorin fonttiperhe', + 'preferences.editorIndentType': 'Editorin sisennystyyppi', + 'preferences.tab': 'Sarkain', + 'preferences.spaces': 'Välilyöntejä', + 'preferences.editorIndentSize': 'Editorin sisennyskoko', + 'preferences.editorKeymap': 'Editorin avainkartta', + 'preferences.editorPreview': 'Editorin esikatselu', + + // Preferences MarkdownTab + 'preferences.previewStyle': 'Esikatsele tyyliä', + 'preferences.markdownCodeBlockTheme': 'Koodilohko teema', + 'preferences.defaultTheme': 'Käytä oletusteemaa', + 'preferences.markdownPreview': 'Markdown esikatselu', + + // Preferences ImportTab + 'preferences.import': 'Tuo', + 'preferences.description': 'Tuo .cson tiedostoja vanhasta Boostnotesta.', + 'preferences.importFlow1': + '1. Avaa vanha Boostnote kansio tietokoneellasi.', + 'preferences.importFlow2': + '2. Raahaa ja tiputa .cson tiedostot alla olevaan lomakkeeseen.', + 'preferences.importFlow3': + '3. Valitse tallennustila ja kansio johon haluat siirtää vanhan datasi.', + 'preferences.importFlow4': '4. Lähetä!', + 'preferences.importRemove': 'poista', + 'preferences.importUpload': 'Lähetä', + }, +} diff --git a/src/locales/ruRU.ts b/src/locales/ruRU.ts index 9056c1ad40..2e7dbf40d5 100644 --- a/src/locales/ruRU.ts +++ b/src/locales/ruRU.ts @@ -38,7 +38,8 @@ export default { 'folder.folder': 'Папка', 'folder.create': 'Новая папка', 'folder.rename': 'Переименовать папку', - 'folder.renameMessage': 'Введите новое имя папки. Пути заметок и подпапок будут обновлены.', + 'folder.renameMessage': + 'Введите новое имя папки. Пути заметок и подпапок будут обновлены.', 'folder.renameErrorMessage': 'Ошибка переименования папки', 'folder.remove': 'Удалить папку', 'folder.removeMessage': 'Все заметки и подпапки будут удалены.', @@ -133,8 +134,10 @@ export default { 'preferences.dateCreated': 'Дата создания', 'preferences.title': 'Название', 'preferences.analytics': 'Аналитика', - 'preferences.analyticsDescription1': 'Boost Note собирает ананимные данные исключительно для улучшения приложения. Сбор персональых данных включая Ваши заметки строго исключен. Открытый исходный код доступен на GitHub.', - 'preferences.analyticsDescription2': 'Эту функцию можно включить или выключить', + 'preferences.analyticsDescription1': + 'Boost Note собирает ананимные данные исключительно для улучшения приложения. Сбор персональых данных включая Ваши заметки строго исключен. Открытый исходный код доступен на GitHub.', + 'preferences.analyticsDescription2': + 'Эту функцию можно включить или выключить', 'preferences.analyticsLabel': 'Включить аналитику для улучшения Boostnote', 'preferences.displayTutorialsLabel': 'Уроки и ЧаВо', @@ -157,10 +160,13 @@ export default { // Preferences ImportTab 'preferences.import': 'Импорт', - 'preferences.description': 'Импортировать файлы .cson из старой версии Boostnote.', - 'preferences.importFlow1': '1. Откройте папку старого Boostnote на своем ПК.', + 'preferences.description': + 'Импортировать файлы .cson из старой версии Boostnote.', + 'preferences.importFlow1': + '1. Откройте папку старого Boostnote на своем ПК.', 'preferences.importFlow2': '2. Перетащите файлы .cson на форму ниже.', - 'preferences.importFlow3': '3. Выберите Хранилище и Папку куда переместить старые данные.', + 'preferences.importFlow3': + '3. Выберите Хранилище и Папку куда переместить старые данные.', 'preferences.importFlow4': '4. Upload!', 'preferences.importRemove': 'Удалить', 'preferences.importUpload': 'Загрузить', From 1d4cf0934ef478446bbcee051c6aea57f89e015a Mon Sep 17 00:00:00 2001 From: Junyoung Choi Date: Fri, 30 Oct 2020 07:19:20 +0900 Subject: [PATCH 3/3] Update lock file --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index f544b52c63..cf0b903df0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4214,9 +4214,9 @@ "integrity": "sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs=" }, "caniuse-lite": { - "version": "1.0.30001035", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001035.tgz", - "integrity": "sha512-C1ZxgkuA4/bUEdMbU5WrGY4+UhMFFiXrgNAfxiMIqWgFTWfv/xsZCS2xEHT2LMq7xAZfuAnu6mcqyDl0ZR6wLQ==", + "version": "1.0.30001154", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001154.tgz", + "integrity": "sha512-y9DvdSti8NnYB9Be92ddMZQrcOe04kcQtcxtBx4NkB04+qZ+JUWotnXBJTmxlKudhxNTQ3RRknMwNU2YQl/Org==", "dev": true }, "capture-exit": {