MCPcopy Create free account
hub / github.com/bytebase/bytebase / baseKey

Function baseKey

frontend/scripts/check-react-i18n.mjs:156–158  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

154
155// i18next pluralization: _one/_other suffixes map to the base key in code
156function baseKey(key) {
157 return key.replace(/_(one|other|zero|few|many)$/, "");
158}
159
160function isDynamic(key) {
161 return DYNAMIC_PREFIXES.some((p) => key.startsWith(p));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected