refactor(marketplace & achievements): Structural achanges and fixes

Co-authored-by: Isaac <contact@eartharoid.me>
Co-authored-by: David Ralph <me@davidcralph.co.uk>
This commit is contained in:
alexsparkes
2024-02-19 23:37:25 +00:00
parent e0ced3de08
commit 4975bd3077
26 changed files with 318 additions and 142 deletions

View File

@@ -0,0 +1,36 @@
import de_DE from 'i18n/locales/achievements/de_DE.json';
import en_GB from 'i18n/locales/achievements/en_GB.json';
import en_US from 'i18n/locales/achievements/en_US.json';
import es from 'i18n/locales/achievements/es.json';
import fr from 'i18n/locales/achievements/fr.json';
import nl from 'i18n/locales/achievements/nl.json';
import no from 'i18n/locales/achievements/no.json';
import ru from 'i18n/locales/achievements/ru.json';
import zh_CN from 'i18n/locales/achievements/zh_CN.json';
import id_ID from 'i18n/locales/achievements/id_ID.json';
import tr_TR from 'i18n/locales/achievements/tr_TR.json';
import bn from 'i18n/locales/achievements/bn.json';
import pt_BR from 'i18n/locales/achievements/pt_BR.json';
import achievements from 'utils/data/achievements.json';
const translations = {
de_DE,
en_GB,
en_US,
es,
fr,
nl,
no,
ru,
zh_CN,
id_ID,
tr_TR,
bn,
pt_BR,
};
export {
achievements,
translations
};

View File

@@ -1,52 +1,86 @@
{
"achievements": [
{
"name": "10/10 IGN",
"description": "Opened 10 tabs",
"condition": {
"type": "tabsOpened",
"amount": 10
}
},
{
"name": "Thank you",
"description": "Opened 39 tabs",
"condition": {
"type": "tabsOpened",
"amount": 39
}
},
{
"name": "Seasoning",
"description": "Opened 100 tabs",
"condition": {
"type": "tabsOpened",
"amount": 100
}
},
{
"name": "Mr Worldwide",
"description": "Opened 305 tabs",
"condition": {
"type": "tabsOpened",
"amount": 305
}
},
{
"name": "Average Linux user",
"description": "Installed an add-on",
"condition": {
"type": "addonInstall",
"amount": 1
}
},
{
"name": "Fully riced",
"description": "Installed 5 add-ons",
"condition": {
"type": "addonInstall",
"amount": 5
}
[
{
"id": "10tabs",
"condition": {
"type": "tabsOpened",
"amount": 10
}
]
}
},
{
"id": "thankyou",
"condition": {
"type": "tabsOpened",
"amount": 39
}
},
{
"id": "seasoning",
"condition": {
"type": "tabsOpened",
"amount": 100
}
},
{
"id": "mrworldwide",
"condition": {
"type": "tabsOpened",
"amount": 305
}
},
{
"id": "tabaholic",
"condition": {
"type": "tabsOpened",
"amount": 500
}
},
{
"id": "727",
"condition": {
"type": "tabsOpened",
"amount": 727
}
},
{
"id": "808sandtabs",
"condition": {
"type": "tabsOpened",
"amount": 808
}
},
{
"id": "1337",
"condition": {
"type": "tabsOpened",
"amount": 1337
}
},
{
"id": "averagelinuxuser",
"condition": {
"type": "addonInstall",
"amount": 1
}
},
{
"id": "fullyriced",
"condition": {
"type": "addonInstall",
"amount": 5
}
},
{
"id": "21addons",
"condition": {
"type": "addonInstall",
"amount": 21
}
},
{
"id": "overload",
"condition": {
"type": "addonInstall",
"amount": 50
}
}
]