Resolve one document's catalog info in the requested locale.
Stable DocumentTypeCode (e.g. "BR_CPF").
DocumentTypeCode
"BR_CPF"
Display locale (default "en").
"en"
A DocumentInfo with localized names, or null if code is not registered.
DocumentInfo
null
code
import { getDocumentInfo } from "nationid/catalog";const info = getDocumentInfo("BR_CPF", "pt");info?.displayName; // "CPF"info?.longName; // "Cadastro de Pessoas FĂsicas" Copy
import { getDocumentInfo } from "nationid/catalog";const info = getDocumentInfo("BR_CPF", "pt");info?.displayName; // "CPF"info?.longName; // "Cadastro de Pessoas FĂsicas"
Resolve one document's catalog info in the requested locale.