⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.37
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
usr
/
share
/
grafana
/
public
/
locales
/
Edit File: pseudo.js
const fs = require('fs/promises'); const pseudoizer = require('pseudoizer'); const prettier = require('prettier'); function pseudoizeJsonReplacer(key, value) { if (typeof value === 'string') { // Split string on brace-enclosed segments. Odd indices will be {{variables}} const phraseParts = value.split(/(\{\{[^}]+}\})/g); const translatedParts = phraseParts.map((str, index) => index % 2 ? str : pseudoizer.pseudoize(str)) return translatedParts.join("") } return value; } fs.readFile('./public/locales/en-US/grafana.json').then(async (enJson) => { const enMessages = JSON.parse(enJson); // Add newline to make prettier happy const pseudoJson = await prettier.format(JSON.stringify(enMessages, pseudoizeJsonReplacer, 2), { parser: 'json', }); return fs.writeFile('./public/locales/pseudo-LOCALE/grafana.json', pseudoJson); });
Simpan