add ko and ar

This commit is contained in:
rustdesk
2024-10-22 17:06:21 +08:00
parent f98238482e
commit d41d515b15
16 changed files with 1763 additions and 14 deletions

View File

@@ -4,8 +4,10 @@ import de from './cookie/de.json';
import es from './cookie/es.json';
import fr from './cookie/fr.json';
import pt from './cookie/pt.json';
import it from './cookie/pt.json';
import ja from './cookie/pt.json';
import it from './cookie/it.json';
import ja from './cookie/ja.json';
import ar from './cookie/ar.json';
import ko from './cookie/ko.json';
import zhCN from './cookie/zh-CN.json';
import zhTW from './cookie/zh-TW.json';
@@ -22,6 +24,9 @@ export const config: CookieConsentConfig = {
flipButtons: false,
},
},
onConsent: () => {
localStorage.setItem('cookie-accepted', 'true');
},
categories: {
necessary: {
readOnly: true,
@@ -31,10 +36,9 @@ export const config: CookieConsentConfig = {
services: {
ga4: {
label:
'<a href="https://marketingplatform.google.com/about/analytics/terms/us/" target="_blank">Google Analytics 4 (dummy)</a>',
'<a href="https://marketingplatform.google.com/about/analytics/terms/us/" target="_blank">Google Analytics 4</a>',
onAccept: () => {
// TODO: load ga4
localStorage.setItem('cookie-accepted', 'true');
},
onReject: () => {
console.log('ga4 rejected');
@@ -45,17 +49,14 @@ export const config: CookieConsentConfig = {
},
],
},
another: {
label: 'Another one (dummy)',
},
},
},
},
language: {
default: 'en',
autoDetect: 'browser',
autoDetect: 'document',
translations: {
en, de, es, fr, ja, pt, it, 'zh-CN': zhCN, 'zh-TW': zhTW,
en, de, es, fr, ja, pt, it, 'zh-CN': zhCN, 'zh-TW': zhTW, ar, ko,
},
},
};