mirror of
https://github.com/bs-community/blessing-skin-plugins.git
synced 2025-01-07 03:06:43 +08:00
fix test implementation of function t
This commit is contained in:
parent
329af60d74
commit
01f693c75d
6
types.ts
6
types.ts
@ -21,8 +21,10 @@ export let site_name = 'Blessing Skin'
|
||||
export let version: string
|
||||
export let route: string
|
||||
|
||||
export function t(key: string, params?: object) {
|
||||
return `${key}(${JSON.stringify(params)})`
|
||||
export function t(key: string, params?: object): string {
|
||||
const data = params ? `(${JSON.stringify(params)})` : ''
|
||||
|
||||
return key + data
|
||||
}
|
||||
|
||||
export const fetch = {
|
||||
|
Loading…
Reference in New Issue
Block a user