53 lines
1.6 KiB
Erlang
53 lines
1.6 KiB
Erlang
|
|
%%%-------------------------------------------------------------------
|
||
|
|
%%% @author caocg
|
||
|
|
%%% @copyright (C) 2021, <COMPANY>
|
||
|
|
%%% @doc
|
||
|
|
%%%
|
||
|
|
%%% @end
|
||
|
|
%%% Created : 22. 11月 2021 17:45
|
||
|
|
%%%-------------------------------------------------------------------
|
||
|
|
-module(unit_part2_data_lang).
|
||
|
|
|
||
|
|
-include("data_config.hrl").
|
||
|
|
-export([cfg/0]).
|
||
|
|
|
||
|
|
|
||
|
|
cfg() ->
|
||
|
|
#data_cfg{
|
||
|
|
name = unit_part2_data_lang
|
||
|
|
, lua_name = unit_data2_lang
|
||
|
|
, desc = ""
|
||
|
|
, source = "unit_part2_data_lang.xml"
|
||
|
|
, target = ""
|
||
|
|
, inc = []
|
||
|
|
, callback =
|
||
|
|
[
|
||
|
|
]
|
||
|
|
, callback_cli =
|
||
|
|
[
|
||
|
|
]
|
||
|
|
, callback_json =
|
||
|
|
[
|
||
|
|
{get, cb_fun_json, handle, {key_val, ["常量"], [key], [val]}}
|
||
|
|
,{val_arr, cb_fun_json, handle, {key_val, ["文字"], [index], [id, en_str, fr_str, ger_str, viet_str]}}
|
||
|
|
]
|
||
|
|
, sheet =
|
||
|
|
[
|
||
|
|
{["常量"],
|
||
|
|
[
|
||
|
|
#f_column{type = bstr, name = key, desc = "键", mod = client}
|
||
|
|
, #f_column{type = int, name = val, desc = "值", mod = client}
|
||
|
|
, #f_column{type = bstr, name = desc, desc = "说明", mod = client}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
,{["文字"], [
|
||
|
|
#f_column{type = int, name = index, desc = "序号", mod = client}
|
||
|
|
,#f_column{type = bstr, name = id, desc = "索引原文CN", mod = client}
|
||
|
|
,#f_column{type = bstr, name = en_str, desc = "翻译内容EN", mod = client}
|
||
|
|
,#f_column{type = bstr, name = fr_str, desc = "翻译内容FR", mod = client}
|
||
|
|
,#f_column{type = bstr, name = ger_str, desc = "翻译内容GER", mod = client}
|
||
|
|
,#f_column{type = bstr, name = viet_str, desc = "翻译内容VIET", mod = client}
|
||
|
|
]}
|
||
|
|
]
|
||
|
|
}.
|