Made language file make more sense

This commit is contained in:
RemixDev 2022-02-03 01:11:53 +01:00
parent 77effb041c
commit 426b3ce0ba
3 changed files with 131 additions and 100 deletions

View File

@ -1,44 +1,54 @@
<template>
<div>
<h1 class="mb-8 text-5xl">{{ $t('settings.login.arl.question') }}</h1>
<p class="mb-2 text-base">{{ $t('settings.login.arl.howTo') }}</p>
<p class="mb-2 text-base">
{{ $t('settings.login.arl.howTo.prologue.p1') }}<br/>
{{ $t('settings.login.arl.howTo.prologue.p2') }}<br/>
{{ $t('settings.login.arl.howTo.prologue.p3') }}<br/>
{{ $t('settings.login.arl.howTo.prologue.p4') }}<br/>
</p>
<p class="mb-2 text-base"><b>{{ $t('settings.login.arl.howTo.prologue.warning') }}</b></p>
<h3 class="mt-6 text-3xl">{{ $t('settings.login.arl.chromeSteps.easyWay.title') }}</h3>
<h3 class="mt-6 text-3xl">{{ $t('settings.login.arl.howTo.chromeSteps.easyWay.title') }}</h3>
<ul class="mb-2 text-base">
<li>{{ $t('settings.login.arl.commonSteps.stepOne') }}</li>
<li>{{ $t('settings.login.arl.commonSteps.stepTwo') }}</li>
<li>{{ $t('settings.login.arl.chromeSteps.easyWay.stepThree') }}</li>
<li>{{ $t('settings.login.arl.chromeSteps.easyWay.stepFour') }}</li>
<li>{{ $t('settings.login.arl.chromeSteps.easyWay.stepFive') }}</li>
<li>{{ $t('settings.login.arl.commonSteps.stepLast') }}</li>
<li>{{ $t('settings.login.arl.howTo.chromeSteps.step1') }}</li>
<li>{{ $t('settings.login.arl.howTo.commonSteps.step2') }}</li>
<li>{{ $t('settings.login.arl.howTo.chromeSteps.easyWay.step3') }}</li>
<li>{{ $t('settings.login.arl.howTo.chromeSteps.easyWay.step4') }}</li>
<li>{{ $t('settings.login.arl.howTo.chromeSteps.easyWay.step5') }}</li>
<li>{{ $t('settings.login.arl.howTo.commonSteps.lastStep') }}</li>
</ul>
<h3 class="mt-6 text-3xl">{{ $t('settings.login.arl.chromeSteps.title') }}</h3>
<h3 class="mt-6 text-3xl">{{ $t('settings.login.arl.howTo.chromeSteps.title') }}</h3>
<ul class="mb-2 text-base">
<li>{{ $t('settings.login.arl.commonSteps.stepOne') }}</li>
<li>{{ $t('settings.login.arl.commonSteps.stepTwo') }}</li>
<li>{{ $t('settings.login.arl.commonSteps.stepThree') }}</li>
<li>{{ $t('settings.login.arl.chromeSteps.stepFour') }}</li>
<li>{{ $t('settings.login.arl.commonSteps.stepFive') }}</li>
<li>{{ $t('settings.login.arl.commonSteps.stepSix') }}</li>
<li>{{ $t('settings.login.arl.commonSteps.stepSeven') }}</li>
<li>{{ $t('settings.login.arl.commonSteps.stepEight') }}</li>
<li>{{ $t('settings.login.arl.commonSteps.stepNine') }}</li>
<li>{{ $t('settings.login.arl.howTo.chromeSteps.step1') }}</li>
<li>{{ $t('settings.login.arl.howTo.commonSteps.step2') }}</li>
<li>{{ $t('settings.login.arl.howTo.commonSteps.step3') }}</li>
<li>{{ $t('settings.login.arl.howTo.chromeSteps.step4') }}</li>
<li>{{ $t('settings.login.arl.howTo.commonSteps.step5') }}</li>
<li>{{ $t('settings.login.arl.howTo.commonSteps.step6') }}</li>
<li>{{ $t('settings.login.arl.howTo.commonSteps.step7') }}</li>
<li>{{ $t('settings.login.arl.howTo.commonSteps.step8') }}</li>
<li>{{ $t('settings.login.arl.howTo.commonSteps.lastStep') }}</li>
</ul>
<p class="mb-2 text-base">{{ $t('settings.login.arl.chromeSteps.hereIs') }} <a href="https://youtu.be/O6PRT47_yds" target="_blank">{{ $t('settings.login.arl.chromeSteps.videoGuide') }}</a></p>
<i18n path="settings.login.arl.howTo.chromeSteps.videoGuide.text" tag="p" class="mb-2 text-base">
<template #videoGuide>
<a href="https://youtu.be/O6PRT47_yds" target="_blank">{{ $t('settings.login.arl.howTo.chromeSteps.videoGuide.link') }}</a>
</template>
</i18n>
<h3 class="mt-6 text-3xl">{{ $t('settings.login.arl.firefoxSteps.title') }}</h3>
<h3 class="mt-6 text-3xl">{{ $t('settings.login.arl.howTo.firefoxSteps.title') }}</h3>
<ul class="mb-2 text-base">
<li>{{ $t('settings.login.arl.firefoxSteps.stepOne') }}</li>
<li>{{ $t('settings.login.arl.commonSteps.stepTwo') }}</li>
<li>{{ $t('settings.login.arl.commonSteps.stepThree') }}</li>
<li>{{ $t('settings.login.arl.firefoxSteps.stepFour') }}</li>
<li>{{ $t('settings.login.arl.commonSteps.stepFive') }}</li>
<li>{{ $t('settings.login.arl.commonSteps.stepSix') }}</li>
<li>{{ $t('settings.login.arl.commonSteps.stepSeven') }}</li>
<li>{{ $t('settings.login.arl.commonSteps.stepEight') }}</li>
<li>{{ $t('settings.login.arl.commonSteps.stepNine') }}</li>
<li>{{ $t('settings.login.arl.howTo.firefoxSteps.step1') }}</li>
<li>{{ $t('settings.login.arl.howTo.commonSteps.step2') }}</li>
<li>{{ $t('settings.login.arl.howTo.commonSteps.step3') }}</li>
<li>{{ $t('settings.login.arl.howTo.firefoxSteps.step4') }}</li>
<li>{{ $t('settings.login.arl.howTo.commonSteps.step5') }}</li>
<li>{{ $t('settings.login.arl.howTo.commonSteps.step6') }}</li>
<li>{{ $t('settings.login.arl.howTo.commonSteps.step7') }}</li>
<li>{{ $t('settings.login.arl.howTo.commonSteps.step8') }}</li>
<li>{{ $t('settings.login.arl.howTo.commonSteps.lastStep') }}</li>
</ul>
</div>
</template>

View File

@ -1,32 +1,39 @@
<template>
<div>
<h1 class="mb-8 text-5xl">{{ $t('settings.spotify.question') }}</h1>
<p class="mb-2 text-base">{{ $t('settings.spotify.howTo.prologue') }}</p>
<p class="mb-2 text-base">
{{ $t('settings.spotify.howTo.prologue.p1') }}<br/>
{{ $t('settings.spotify.howTo.prologue.p2') }}<br/>
{{ $t('settings.spotify.howTo.prologue.p3') }}<br/>
</p>
<p class="mb-2 text-base">{{ $t('settings.spotify.howTo.info') }}</p>
<h2 class="mt-6 text-3xl">{{ $t('settings.spotify.howTo.questionOne.title') }}</h2>
<p class="mb-2 text-base">
{{ $t('settings.spotify.howTo.questionOne.stepOne.partOne') }}
<a href="https://developer.spotify.com/dashboard" target="_blank">{{ $t('settings.spotify.howTo.questionOne.stepOne.partTwo') }}</a> {{ $t('settings.spotify.howTo.questionOne.stepOne.partThree') }}
<h2 class="mt-6 text-3xl">{{ $t('settings.spotify.howTo.clientSecretQuestion.title') }}</h2>
<i18n path="settings.spotify.howTo.clientSecretQuestion.step1.text" tag="p" class="mb-4 text-base">
<template #spotifyDevelopersDashboard>
<a href="https://developer.spotify.com/dashboard" target="_blank">{{ $t('settings.spotify.howTo.clientSecretQuestion.step1.spotifyDevelopersDashboard') }}</a>
</template>
</i18n>
<p class="mb-4 text-base">
{{ $t('settings.spotify.howTo.clientSecretQuestion.step2.text') }}<br/>
<img src="https://i.imgur.com/YFz7rHj.png" :alt="$t('settings.spotify.howTo.clientSecretQuestion.step2.imageAlt')" />
</p>
<p class="mb-2 text-base">
{{ $t('settings.spotify.howTo.questionOne.stepTwo') }}
<img src="https://i.imgur.com/YFz7rHj.png" :alt="$t('settings.spotify.howTo.questionOne.stepTwoAlt')" />
<p class="mb-4 text-base">
{{ $t('settings.spotify.howTo.clientSecretQuestion.step3.text') }}<br/>
<img src="https://i.imgur.com/A9cvDkK.png" :alt="$t('settings.spotify.howTo.clientSecretQuestion.step3.imageAlt')" />
</p>
<p class="mb-2 text-base">
{{ $t('settings.spotify.howTo.questionOne.stepThree') }}
<img src="https://i.imgur.com/A9cvDkK.png" :alt="$t('settings.spotify.howTo.questionOne.stepThreeAlt')" />
<p class="mb-4 text-base">
{{ $t('settings.spotify.howTo.clientSecretQuestion.step4.text') }}<br/>
<img src="https://i.imgur.com/foEfIhO.png" :alt="$t('settings.spotify.howTo.clientSecretQuestion.step4.imageAlt')" />
</p>
<p class="mb-2 text-base">
{{ $t('settings.spotify.howTo.questionOne.stepFour') }}
<img src="https://i.imgur.com/foEfIhO.png" :alt="$t('settings.spotify.howTo.questionOne.stepFourAlt')" />
</p>
<p class="mb-2 text-base">{{ $t('settings.spotify.howTo.questionOne.stepFive') }}</p>
<p class="mb-4 text-base">{{ $t('settings.spotify.howTo.clientSecretQuestion.step5') }}</p>
<h2 class="mt-6 text-3xl">{{ $t('settings.spotify.howTo.questionTwo.title') }}</h2>
<p class="mb-2 text-base">
{{ $t('settings.spotify.howTo.questionTwo.stepOne.partOne') }} <a href="https://www.spotify.com/it/account/overview/" target="_blank">{{ $t('settings.spotify.howTo.questionTwo.stepOne.partTwo') }}</a> {{ $t('settings.spotify.howTo.questionTwo.stepOne.partThree') }}.
</p>
<h2 class="mt-6 text-3xl">{{ $t('settings.spotify.howTo.usernameQuestion.title') }}</h2>
<i18n path="settings.spotify.howTo.usernameQuestion.step1.text" tag="p" class="mb-4 text-base">
<template #overviewPage>
<a href="https://www.spotify.com/it/account/overview/" target="_blank">{{ $t('settings.spotify.howTo.usernameQuestion.step1.overviewPage') }}</a>
</template>
</i18n>
</div>
</template>

View File

@ -231,34 +231,43 @@ const en = {
arl: {
title: 'Use ARL instead',
question: 'How do I get my own ARL?',
howTo:
'Deezer keeps track of login session by using a cookie called ARL.\nDeemix uses that cookie to get the metadata that it needs to download the tracks from Deezer.\nARLs last for 3 months, after that Deezer asks you to log in again. The same method is used in deemix.\nFollowing one of the guides below you can get your own account ARL.',
howTo: {
prologue: {
p1: 'Deezer keeps track of login session by using a cookie called ARL.',
p2: 'Deemix uses that cookie to get the metadata that it needs to download the tracks from Deezer.',
p3: 'ARLs last for 3 months, after that Deezer asks you to log in again. The same method is used in deemix.',
p4: 'Following one of the guides below you can get your own account ARL.',
warning: "Use this method only if email and password doesn't work."
},
chromeSteps: {
title: 'Chrome',
step1: 'Open Chrome',
easyWay: {
title: 'Chrome (Easy way)',
stepThree: 'Click on the little "lock" icon next the URL',
stepFour: 'Click on Cookies > deezer.com > cookies > arl',
stepFive: 'Select the string next to Content, and Copy'
step3: 'Click on the little "lock" icon next the URL',
step4: 'Click on Cookies > deezer.com > cookies > arl',
step5: 'Select the string next to Content, and Copy'
},
title: 'Chrome',
stepFour: "Go under the Application tab (if you don't see it click the double arrow)",
hereIs: "Here's a",
videoGuide: 'video guide'
step4: "Go under the Application tab (if you don't see it click the double arrow)",
videoGuide: {
text: "Here's a {videoGuide}",
link: 'video guide'
}
},
firefoxSteps: {
title: 'Firefox',
stepOne: 'Open Firefox',
stepFour: "Go under the Storage tab (if you don't see it click the double arrow)"
step1: 'Open Firefox',
step4: "Go under the Storage tab (if you don't see it click the double arrow)"
},
commonSteps: {
stepOne: 'Open Chrome',
stepTwo: 'Go to www.deezer.com and log into your account',
stepThree: 'After logging in press F12 to open up Developer Tools',
stepFive: 'Open the cookie dropdown',
stepSix: 'Select www.deezer.com',
stepSeven: 'Find the `arl` cookie (It should be 192 chars long)',
stepEight: 'Make sure only copy the value and not the entire cookie',
stepLast: "That's your ARL, now you can use it in the app"
step2: 'Go to www.deezer.com and log into your account',
step3: 'After logging in press F12 to open up Developer Tools',
step5: 'Open the cookie dropdown',
step6: 'Select www.deezer.com',
step7: 'Find the `arl` cookie (It should be 192 chars long)',
step8: 'Make sure only copy the value and not the entire cookie',
lastStep: "That's your ARL, now you can use it in the app"
}
},
update: 'Force Update ARL'
},
@ -437,32 +446,37 @@ const en = {
username: 'Spotify Username',
question: 'How do I enable Spotify Features?',
howTo: {
prologue:
'"Spotify Features" is a set of features that lets you convert Spotify tracks and albums links into Deezer ones. If you provide a Spotify Playlist link the app will automatically convert all the links of the tracks inside it into deezer tracks. Enabling this set of features will let you see your public Spotify playlists in the favorites tab as well.',
prologue: {
p1: '"Spotify Features" is a set of features that lets you convert Spotify tracks and albums links into Deezer ones.',
p2: 'If you provide a Spotify Playlist link the app will automatically convert all the links of the tracks inside it into deezer tracks.',
p3: 'Enabling this set of features will let you see your public Spotify playlists in the favorites tab as well.'
},
info: 'For security reasons you will need to provide your own Client ID and Client Secret',
questionOne: {
clientSecretQuestion: {
title: 'How do I get my Client ID and Client Secret?',
stepOne: {
partOne: 'Connect to',
partTwo: "Spotify for Developers's Dashboard",
partThree: 'and login with your Spotify account.'
step1: {
text: 'Connect to {spotifyDevelopersDashboard} and login with your Spotify account.',
spotifyDevelopersDashboard: "Spotify for Developers's Dashboard"
},
stepTwo: 'Click on "Create an App".\n',
stepTwoAlt: "Create an App button on Spotify for Developers's Dashboard",
stepThree:
'Fill out the "App name" and "App description" fields and check both checkboxes. Then click on the "Create" button.\n',
stepThreeAlt: 'Create an app form',
stepFour:
'Now you can see the Client ID. If you click on "Show Client Secret" the client secret will be revealed.\n',
stepFourAlt: 'Screen of client ID and Secret',
stepFive: 'Now you can copy-paste those results in the appropriate fields in the settings.'
step2: {
text: 'Click on "Create an App".',
imageAlt: "Create an App button on Spotify for Developers's Dashboard"
},
questionTwo: {
step3: {
text: 'Fill out the "App name" and "App description" fields and check both checkboxes. Then click on the "Create" button.',
imageAlt: 'Create an app form'
},
step4: {
text: 'Now you can see the Client ID. If you click on "Show Client Secret" the client secret will be revealed.',
imageAlt: 'Screen of client ID and Secret'
},
step5: 'Now you can copy-paste those results in the appropriate fields in the settings.'
},
usernameQuestion: {
title: 'How do I get my Spotify Username?',
stepOne: {
partOne: 'You can get your Spotify Username from the',
partTwo: 'Overview page',
partThree: "on Spotify's Website"
step1: {
text: "You can get your Spotify Username from the {overviewPage} on Spotify's Website.",
overviewPage: 'Overview page'
}
}
}