field | Description | Example |
---|---|---|
modelName | Model name |
|
modelDesc | Model description |
|
<FIELD_NAME> | Field name of the domain full model |
|
desc-<FIELD_NAME> | Field description of the domain full model |
|
Model name
modelName: ['Drone', '드론']
Model description
modelDesc: [
'drone is a flying robot...',
'드론은 임베디드 시스템...'
]
Field name of the domain full model
name: ['Name', '이름']
Field description of the domain full model
'desc-name': ['Name of the drone', '드론의 이름']
field | Description | Example |
---|---|---|
<FIELD_NAME> | Field name of the domain insight model |
|
desc-<FIELD_NAME> | Field description of the domain insight model |
|
Field name of the domain insight model
count: ['Count', '개수']
Field description of the domain insight model
'desc-count': ['Drone count in...', '현재 쿼리 설정에...']
field | Description | Example |
---|---|---|
<FIELD_NAME> | Field name of the domain sort |
|
desc-<FIELD_NAME> | Field description of the domain sort |
|
Field name of the domain sort
count: ['Count', '계수']
Field description of the domain sort
'desc-count': ['Drone count in...', '현재 쿼리 설정에...']
field | Description | Example |
---|---|---|
enum<FIELD_NAME><ENUM_VALUE> | Field name of the domain enum |
|
enumdesc<FIELD_NAME><ENUM_VALUE> | Field description of the domain enum |
|
Field name of the domain enum
'enum-status-active': ['Active', '활성']
Field description of the domain enum
'enumdesc-status-active': ['Active status', '활성 상태']
Term definition: land: ['Land', '착륙']
Error message: noDroneError: ['Drone does not exist', '드론이 존재하지 않습니다']
field | Description | Example |
---|---|---|
<FIELD_NAME> | Field name of the domain summary model |
|
desc-<FIELD_NAME> | Field description of the domain summary model |
|
Field name of the domain summary model
totalDrone: ['Total Drone', '총 Drone 수']
Field description of the domain summary model
'desc-totalDrone': ['Total drone count...', '데이터베이스에...']
field | Description | Example |
---|---|---|
api<SIGNAL_KEY> | Role of the API endpoint |
|
apidesc<SIGNAL_KEY> | Description of the API endpoint |
|
arg<SIGNAL_KEY><ARG_NAME> | Parameter of the API endpoint |
|
argdesc<SIGNAL_KEY><ARG_NAME> | Description of the API endpoint parameter |
|
Role of the API endpoint
'api-droneListInPublic': ['Drone List In Public', '공개된 Drone 리스트']
Description of the API endpoint
'apidesc-droneListInPublic': ['Get a list of...', '공개된 Drone의...']
Parameter of the API endpoint
'arg-droneListInPublic-statuses': ['Statuses', '상태']
Description of the API endpoint parameter
'argdesc-droneListInPublic-statuses': ['Statuses to filter', '필터링할 상태']
import { ModelDictionary, SignalDictionary, SummaryDictionary, baseTrans, getBaseSignalTrans } from '@core/base';
import type { Drone, DroneInsight, DroneSummary, droneSort } from './drone.constant';
import type { DroneSignal } from './drone.signal';
const modelDictionary = {
...baseTrans,
modelName: ['Drone', '드론'],
modelDesc: [
'drone is a flying robot that can be remotely controlled or fly autonomously through software-controlled flight plans in their embedded systems, working in conjunction with onboard sensors and GPS.',
'드론은 임베디드 시스템에서 작동하는 소프트웨어 제어 비행 계획을 통해 원격으로 제어되거나 자율적으로 비행할 수 있는 비행 로봇입니다.',
],
// * --- Model --- * //
name: ['Name', '이름'],
'desc-name': ['Name of the drone', '드론의 이름'],
wsUrl: ['Websocket URL', '웹소켓 URL'],
'desc-wsUrl': ['Websocket URL of the drone', '드론의 웹소켓 URL'],
// * --- Model --- * //
// * --- Insight --- * //
count: ['Count', '개수'],
'desc-count': ['Drone count in current query setting', '현재 쿼리 설정에 맞는 Drone 수'],
// * --- Insight --- * //
// * --- Sort --- * //
highPriority: ['High Priority', '높은 우선순위'],
'desc-highPriority': ['High priority sort', '높은 우선순위 정렬'],
// * --- Sort --- * //
// * --- Etc --- * //
'enum-status-active': ['Active', '활성'],
'enumdesc-status-active': ['Active status', '활성 상태'],
'enum-status-offline': ['Offline', '오프라인'],
'enumdesc-status-offline': ['Offline status', '오프라인 상태'],
land: ['Land', '착륙'],
return: ['RTB', '복귀'],
terminate: ['Terminate', '종료'],
} satisfies ModelDictionary<Drone, DroneInsight, typeof droneSort>;
export const droneSummaryDictionary = {
// * --- Summary --- * //
totalDrone: ['Total Drone', '총 Drone 수'],
'desc-totalDrone': ['Total drone count in the database', '데이터베이스에 저장된 총 Drone 수'],
// * --- Summary --- * //
} satisfies SummaryDictionary<DroneSummary>;
const signalDictionary = {
...getBaseSignalTrans('drone' as const),
// * --- Endpoint --- * //
'api-droneListInPublic': ['Drone List In Public', '공개된 Drone 리스트'],
'apidesc-droneListInPublic': ['Get a list of public drone', '공개된 Drone의 리스트를 가져올니다'],
'arg-droneListInPublic-statuses': ['Statuses', '상태'],
'argdesc-droneListInPublic-statuses': ['Statuses to filter', '필터링할 상태'],
// * --- Endpoint --- * //
} satisfies SignalDictionary<DroneSignal, Drone>;
export const droneDictionary = { ...modelDictionary, ...signalDictionary };