在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):ttag-org/ttag开源软件地址(OpenSource Url):https://github.com/ttag-org/ttag开源编程语言(OpenSource Language):JavaScript 97.2%开源软件介绍(OpenSource Introduction):Modern javascript i18n localization library based on ES6 tagged templates and the good old GNU gettext Key features
Usage exampleimport { t, ngettext, msgid } from 'ttag'
// formatted strings
const name = 'Mike';
const helloMike = t`Hello ${name}`;
// plurals (works for en locale out of the box)
const n = 5;
const msg = ngettext(msgid`${ n } task left`, `${ n } tasks left`, n) Installationnpm install --save ttag CLIYou may also need to install ttag-cli for ttag cli - https://github.com/ttag-org/ttag-cli npm install --save-dev ttag-cli Usage from CDNhttps://unpkg.com/ttag/dist/ttag.min.js
SupportGive a Useful linksSlides from talksTalksLicenseThis project is licensed under the MIT license. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论