mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 05:08:00 +02:00
Closes #110, Added support for Portuguese
This commit is contained in:
parent
7c5be09194
commit
c6c20eac1f
7 changed files with 55 additions and 33 deletions
|
@ -72,6 +72,14 @@ export const SUPPORTED_LOCALES = [
|
|||
code: 'nl',
|
||||
name: 'Nederlands',
|
||||
},
|
||||
{
|
||||
code: 'pt',
|
||||
name: 'Português',
|
||||
},
|
||||
{
|
||||
code: 'pt_br',
|
||||
name: 'Português Brasileiro',
|
||||
},
|
||||
{
|
||||
code: 'ro',
|
||||
name: 'Română',
|
||||
|
@ -96,10 +104,6 @@ export const SUPPORTED_LOCALES = [
|
|||
code: 'zh_Hans',
|
||||
name: '中文 (简体)',
|
||||
},
|
||||
{
|
||||
code: 'pt_br',
|
||||
name: 'Português Brasileiro',
|
||||
},
|
||||
];
|
||||
|
||||
export const useNav = defineStore('nav', () => {
|
||||
|
|
|
@ -10,6 +10,7 @@ export const useResults = defineStore('results', () => {
|
|||
const items = ref({}),
|
||||
search = ref(''),
|
||||
chartsId = ref(''),
|
||||
album = ref(''),
|
||||
next = ref('');
|
||||
|
||||
function setItem(key, val) {
|
||||
|
@ -19,6 +20,8 @@ export const useResults = defineStore('results', () => {
|
|||
|
||||
function resetItems() {
|
||||
next.value = undefined;
|
||||
album.value = undefined;
|
||||
|
||||
useArtist().reset();
|
||||
for (let i in items.value) {
|
||||
items.value[i] = undefined;
|
||||
|
@ -49,6 +52,8 @@ export const useResults = defineStore('results', () => {
|
|||
|
||||
resetItems();
|
||||
|
||||
album.value = e;
|
||||
|
||||
if (
|
||||
/[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}/.test(
|
||||
hash,
|
||||
|
@ -79,6 +84,7 @@ export const useResults = defineStore('results', () => {
|
|||
search,
|
||||
chartsId,
|
||||
next,
|
||||
album,
|
||||
setItem,
|
||||
resetItems,
|
||||
getExplore,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue