| 1 | import { ALL_LOCALES } from "./config"; |
| 2 | |
| 3 | export type ReviewState = "native" | "machine"; |
| 4 | |
| 5 | const NATIVE_LOCALES: readonly string[] = ["en"]; |
| 6 | |
| 7 | export function reviewState(locale: string): ReviewState { |
| 8 | return NATIVE_LOCALES.includes(locale) ? "native" : "machine"; |
| 9 | } |
| 10 | |
| 11 | export const MACHINE_DRAFT_LOCALES: readonly string[] = ALL_LOCALES.map((l) => l.code).filter((code) => reviewState(code) === "machine"); |
| 12 |