MCPcopy
hub / github.com/lingodotdev/lingo.dev / hasI18nDirective

Function hasI18nDirective

packages/compiler/src/utils/index.ts:216–218  ·  view source on GitHub ↗
(ast: t.Node)

Source from the content-addressed store, hash-verified

214}
215
216export function hasI18nDirective(ast: t.Node): boolean {
217 return _hasFileDirective(ast, "use i18n");
218}
219
220export function hasClientDirective(ast: t.Node): boolean {
221 return _hasFileDirective(ast, "use client");

Callers 2

i18n-directive.tsFile · 0.90
index.spec.tsFile · 0.90

Calls 1

_hasFileDirectiveFunction · 0.85

Tested by

no test coverage detected