mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 12:01:57 +08:00
Add Translation Services Documentation (#841)
Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
This commit is contained in:
parent
f4541271e9
commit
53ca1209c7
@ -36,3 +36,30 @@ En la versión de escritorio se hace clic sobre el campo para visualizar el men
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
## Opciones para el Desarrollador
|
||||||
|
|
||||||
|
El diálogo de **Traducción** se encuentra en la siguiente ruta:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
└── src # código fuente principal
|
||||||
|
└── components # componentes globales
|
||||||
|
└── ADempiere # componentes específicos de ADempiere
|
||||||
|
└── field # Campos
|
||||||
|
└── contextMenu # Menú de Contexto para todos los campos
|
||||||
|
└── translated # directorio principal de Traducción
|
||||||
|
|
||||||
|
```
|
||||||
|
Aquí puede ver un [Demo](https://demo-ui.erpya.com/#/7aa4242a-93c0-42d8-92be-8250002d3e3c/d97027fd-4cd5-445e-8fd8-ef5d3f7959b4/window/53418?tabParent=0&action=fa50908e-40f1-11e9-91a1-0242ac140002)
|
||||||
|
|
||||||
|
El llamado al consumo de servicio de **Traducción** se encuentra en la siguiente ruta:
|
||||||
|
```bash
|
||||||
|
└─ src # Código fuente principal
|
||||||
|
└─ api # Servicios globales
|
||||||
|
└─ ADempiere # Servicios específicos de ADempiere
|
||||||
|
└─ persistence # Directorio principal de los servicio Traducción
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Los servicios llamados del componente son <br>
|
||||||
|
[GET adempiere-api/ui/getTranslations]()<br>
|
||||||
|
@ -35,3 +35,32 @@ In the desktop version, click on the field to view the menu displayed by it, the
|
|||||||
In the desktop version, click on the field to view the menu displayed by it, then select the option "**Language**", to view the information of the field with its respective translation.
|
In the desktop version, click on the field to view the menu displayed by it, then select the option "**Language**", to view the information of the field with its respective translation.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
## Developer Options
|
||||||
|
|
||||||
|
The **Translation** dialog is located in the following path:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
└── src # Main source code
|
||||||
|
└── components # Global components
|
||||||
|
└── ADempiere # specific components de ADempiere
|
||||||
|
└── field # Field
|
||||||
|
└── contextMenu # Context Menu
|
||||||
|
└── translated # Translation home directory
|
||||||
|
|
||||||
|
```
|
||||||
|
Here you can see a [Demo](https://demo-ui.erpya.com/#/7aa4242a-93c0-42d8-92be-8250002d3e3c/d97027fd-4cd5-445e-8fd8-ef5d3f7959b4/window/53418?tabParent=0&action=fa50908e-40f1-11e9-91a1-0242ac140002)
|
||||||
|
|
||||||
|
The **Translation** service consumption call can be found in the following path:
|
||||||
|
```bash
|
||||||
|
└─ src # Main source code
|
||||||
|
└─ api # Global Services
|
||||||
|
└─ ADempiere # ADempiere's specific services
|
||||||
|
└─ persistence # Main service directory Translation
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
The called services of the component are <br>
|
||||||
|
[GET adempiere-api/ui/getTranslations]()<br>
|
||||||
|
@ -35,3 +35,32 @@
|
|||||||
在桌面版本中,單擊該字段以查看其顯示的菜單,然後選擇選項 “**語言**”,以查看該字段的信息及其相應的翻譯。
|
在桌面版本中,單擊該字段以查看其顯示的菜單,然後選擇選項 “**語言**”,以查看該字段的信息及其相應的翻譯。
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
## 开发者选项
|
||||||
|
|
||||||
|
**翻译**对话框位于以下路径中。
|
||||||
|
|
||||||
|
```bash
|
||||||
|
└── src # 主要源代码
|
||||||
|
└── components # 全局组件
|
||||||
|
└── ADempiere # ADempiere的特定组件
|
||||||
|
└── field # 字段
|
||||||
|
└── contextMenu # 上下文菜单
|
||||||
|
└── translated # 翻译主目录
|
||||||
|
|
||||||
|
```
|
||||||
|
在这里你可以看到一个 [Demo](https://demo-ui.erpya.com/#/7aa4242a-93c0-42d8-92be-8250002d3e3c/d97027fd-4cd5-445e-8fd8-ef5d3f7959b4/window/53418?tabParent=0&action=fa50908e-40f1-11e9-91a1-0242ac140002)
|
||||||
|
|
||||||
|
在以下路径中可以找到**翻译**服务的消耗调用。
|
||||||
|
```bash
|
||||||
|
└─ src # 主要源代码
|
||||||
|
└─ api # 全球服务
|
||||||
|
└─ ADempiere # ADempiere的特定服务
|
||||||
|
└── persistence # 主服务目录 翻译
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
该组件的调用服务是<br>
|
||||||
|
[GET adempier-api/ui/getTranslations]()<br>
|
||||||
|
@ -226,7 +226,7 @@ export function requestListEntities({
|
|||||||
* @param {string} recordUuid
|
* @param {string} recordUuid
|
||||||
* @param {number} recordId
|
* @param {number} recordId
|
||||||
*/
|
*/
|
||||||
export function requestTranslations({
|
export function getTranslations({
|
||||||
tableName,
|
tableName,
|
||||||
language,
|
language,
|
||||||
recordUuid,
|
recordUuid,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import {
|
import {
|
||||||
requestTranslations,
|
getTranslations,
|
||||||
requestUpdateEntity
|
requestUpdateEntity
|
||||||
} from '@/api/ADempiere/persistence.js'
|
} from '@/api/ADempiere/persistence.js'
|
||||||
import { isEmptyValue } from '@/utils/ADempiere/valueUtils'
|
import { isEmptyValue } from '@/utils/ADempiere/valueUtils'
|
||||||
@ -82,7 +82,7 @@ const languageControl = {
|
|||||||
recordUuid,
|
recordUuid,
|
||||||
recordId
|
recordId
|
||||||
}) {
|
}) {
|
||||||
return requestTranslations({
|
return getTranslations({
|
||||||
recordUuid,
|
recordUuid,
|
||||||
recordId,
|
recordId,
|
||||||
tableName,
|
tableName,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user