0.38.0
get related i18n dictionary.
Light weight i18n support.
define strings in an object const i18n = { 'en': { hello: 'Hello {{name}}', }, 'zh_TW': { hello: '你好,{{name}}', }, props: ['name'], }
t('hello', { i18n, hello: 'world' }) // Hello World
export SAIHUBOT=zh_TW t('hello', { i18n, hello: 'world' })
// 你好,world
(string)
the string id
(any)
Open url in browser.
(String)
Run local command via execa. https://www.npmjs.com/package/execa
Open link in browser.
Expose web equivalent fetch API.
Render search response message.
get SAIHUBOT_[env] environment variable and return as string or array.
(any)
(any)