我正在使用travis来测试我的代码.最近,grunt任务已经开始失败,而且没有对grunt涉及的任何事情进行任何改变.(测试的新提交只包含两个PHP文件中的非常小的更改.)以下是来自travis的日志部分:
$ grunt build:app
Running "typings:default" (typings) task
Warning: Cannot find any-promise implementation nor global.Promise. You must install polyfill or call require("any-promise/register") with your preferred implementation, e.g. require("any-promise/register")("bluebird") on application load prior to any require("any-promise"). Use --force to continue.
Aborted due to warnings.
The command "grunt build:app" exited with 3.
Run Code Online (Sandbox Code Playgroud)
我试图搜索该警告消息但找不到任何有用的信息.
还有一件事:当我grunt build:app在我的电脑上本地运行它工作得很好.
谢谢你的时间 :)
我正在尝试找出是否有一种方法来设置Polylang(或其他一些WordPress翻译插件),以便当我用一种语言(默认语言)写一篇文章或页面时,它能准确地复制并将其设置为其他语言。因此,至少在我得到翻译人员翻译之前,文章/页面至少是可见的。同样,他不必再次复制或撰写文章,而只需翻译即可。
另外,我在媒体翻译方面也有些挣扎。我知道我可以将其关闭,但是如果我可以使用相同的图像并向其添加不同的翻译,而不是为每种语言上传相同的图像并仅更改描述,那将是很棒的。
感谢您的时间 :)