Skip to content

Commit

Permalink
r0b08x [chore] 4/1/2024, 12:59:42 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
p3x-robot committed Apr 1, 2024
1 parent 1af5a49 commit 40f506e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 17 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ https://corifeus.com/redis-ui


---
# 💿 The p3x-redis-ui-material web interface that connects to the p3x-redis-ui-server via http and socket.io v2024.4.212
# 💿 The p3x-redis-ui-material web interface that connects to the p3x-redis-ui-server via http and socket.io v2024.4.213



Expand Down Expand Up @@ -77,7 +77,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://

---

[**P3X-REDIS-UI-MATERIAL**](https://corifeus.com/redis-ui-material) Build v2024.4.212
[**P3X-REDIS-UI-MATERIAL**](https://corifeus.com/redis-ui-material) Build v2024.4.213

[![NPM](https://img.shields.io/npm/v/p3x-redis-ui-material.svg)](https://www.npmjs.com/package/p3x-redis-ui-material) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "p3x-redis-ui-material",
"version": "2024.4.212",
"version": "2024.4.213",
"description": "💿 The p3x-redis-ui-material web interface that connects to the p3x-redis-ui-server via http and socket.io",
"corifeus": {
"icon": "fas fa-database",
Expand Down
16 changes: 2 additions & 14 deletions src/angular/dialog/p3xr-dialog-json-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,7 @@ p3xr.ng.factory('p3xrDialogJsonEditor', function (p3xrCommon, $mdDialog, $timeou


$timeout(() => {
// en , zn
let language
switch(p3xr.settings.language.current) {
case 'ru':
language = 'ru'
break;
case 'zn':
language = 'zh-CN'
break;
default:
language = 'en'
break;
}

const container = document.getElementById("p3xr-jsoneditor")

const options = {
Expand All @@ -64,7 +52,7 @@ p3xr.ng.factory('p3xrDialogJsonEditor', function (p3xrCommon, $mdDialog, $timeou
mode: 'code',
//search: true,
//mainMenuBar: false,
language: language,
language: p3xr.settings.getJSONEditorLanguage(),
//enableSort: false,
//enableTransform: false,
//ace: ace,
Expand Down
16 changes: 16 additions & 0 deletions src/core/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,22 @@ p3xr.settings = {
locale: p3xr.settings.language.current
})
},
getJSONEditorLanguage: () => {
// en , zn
let language
switch(p3xr.settings.language.current) {
case 'ru':
language = 'ru'
break;
case 'zn':
language = 'zh-CN'
break;
default:
language = 'en'
break;
}
return language
},
getHumanizeDurationLanguage: () => {
let language
switch(p3xr.settings.language.current) {
Expand Down

0 comments on commit 40f506e

Please sign in to comment.