mirror of
https://github.com/hanzoai/browser.git
synced 2026-10-30 18:46:34 +00:00
8 lines
254 B
TypeScript
8 lines
254 B
TypeScript
import type { DevLocale, MessageKey } from './type';
|
|
|
|
export function t(key: MessageKey, substitutions?: string | string[]) {
|
|
return chrome.i18n.getMessage(key, substitutions);
|
|
}
|
|
|
|
t.devLocale = '' as DevLocale; // for type consistency with i18n-dev.ts
|