我是否可以更改有关JHipster'jhiTranslate'的字符串数组的连接字符?

问题描述 投票:0回答:1

例如,如果我使用字符串数组进行翻译, i18n / en / home.json之类的>

     "primaryIntroduction": {
         "p1": [
             "Then Jenkins triggers a task to connect to the docker-server",
             " and calls some docker- and docker-compose commands to pull the new image",
             " and rebuilds and restarts the docker-container."
         ]
    }

jhipster在英语页面上将<p>连接起来:

然后Jenkins触发任务以连接到docker-server,并调用一些docker-和docker-compose命令来拉新映像,然后重建并重新启动docker-container。

(注意逗号)

输入新行而不用引号结尾的行,json文件将停止。如果没有换行符,我认为较大的段落很难阅读和翻译。

我可以更改句子在自己身上的连接方式吗?例如,将数组的字符串放在一起时,使用空格而不是逗号?在Angular系统中为该级联字符引入控制变量是否有用?

例如,如果我使用字符串数组进行翻译, i18n / en / home.json,例如“ primaryIntroduction”:{“ p1”:[“然后Jenkins触发任务以连接到docker-server”,...

angular jhipster ngx-translate
1个回答
0
投票

这很正常,键p1的值是一个数组,而数组的字符串表示形式是逗号分隔的列表。有关详细信息,请参见https://github.com/ngx-translate/core/issues/339

© www.soinside.com 2019 - 2024. All rights reserved.