phaser3-i18n插件:Phaser3 i18n插件

时间:2021-02-03 03:50:28
【文件属性】:
文件名称:phaser3-i18n插件:Phaser3 i18n插件
文件大小:895KB
文件格式:ZIP
更新时间:2021-02-03 03:50:28
game i18n games internationalization localization Phaser3 i18n插件 Phaser3 i18n是Phaser 3的插件,可让您在游戏中进行无缝翻译。 它使用作为翻译管理的源代码,在其他项目中JS社区也广泛采用了 。 主要特点: 支持翻译名称空间 简单键/值JSON 无缝切换语言 不需要额外的函数来翻译字符串,直接内置于Phaser的Text对象中 入门 安装 $ npm i -g npm $ npm i --save @koreez/phaser3-i18n 用法 导入插件 import { I18nPlugin } from "@koreez/phaser3-i18n" ; 加载插件 您需要在游戏中加载插件。 就像Phaser 3中的其他任何插件一样,此操作也完成了。因此,要加载该插件,请将其包含在plugins config中。 const config = { type : Phaser . AUTO , parent : "phaser-example" , width : 800 , height : 600 , plugins : { scene
【文件预览】:
phaser3-i18n-plugin-master
----.gitignore(180B)
----karma.conf.js(2KB)
----tsconfig.json(717B)
----README.md(4KB)
----tsconfig.test.json(188B)
----CHANGELOG.md(138B)
----webpack.example.config.js(1KB)
----.github()
--------ISSUE_TEMPLATE.md(1KB)
--------PULL_REQUEST_TEMPLATE.md(2KB)
----test()
--------README.md(69B)
--------entry.ts(177B)
--------com()
----.prettierrc(154B)
----static()
--------manifest.json(543B)
--------styles()
--------index.html(242B)
--------assets()
----.istanbul.yml(942B)
----LICENSE(1KB)
----package.json(4KB)
----tslint.json(2KB)
----CONTRIBUTING.md(1KB)
----src()
--------com()
--------index.ts(568B)
----CODE_OF_CONDUCT.md(3KB)
----config()
--------webpack.parts.config.js(767B)
--------webpack.config.js(1KB)
--------.eslintrc.js(384B)
----.publishrc(313B)
----tslint.test.json(161B)
----example()
--------index.ts(2KB)
----types()
--------phaser.d.ts(3.58MB)
----.npmignore(398B)
----.travis.yml(585B)
----.editorconfig(338B)
----webpack.config.js(2KB)
----assets()
--------i18n()
--------bitmapfonts()
----package-lock.json(466KB)

网友评论