mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2026-04-18 06:10:01 +00:00
add ko and ar
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user