MCPcopy Create free account
hub / github.com/msgbyte/tailchat / hashTransKey

Function hashTransKey

client/shared/i18n/index.ts:37–40  ·  view source on GitHub ↗
(defaultValue: string)

Source from the content-addressed store, hash-verified

35 react: {
36 // Reference: https://react.i18next.com/latest/trans-component#i-18-next-options
37 hashTransKey(defaultValue: string) {
38 // return a key based on defaultValue or if you prefer to just remind you should set a key return false and throw an error
39 return `k${crc32(defaultValue).toString(16)}`;
40 },
41 },
42 } as any);
43

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected