All files / src/utils supported-locales.js

100% Statements 2/2
100% Branches 0/0
100% Functions 0/0
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17                          23x   23x  
/**
 * Server-side copy of the site's supported non-English locales (SHY-0072).
 *
 * Five languages, not twenty (SHY-0289). Supporting a language is a promise
 * about the quality of what it says — including legal and safety copy read by
 * minors — and that promise can only be made for the five the MVP ships.
 *
 * The authoritative web source is public/js/language-selector.js — a
 * browser IIFE that cannot be require()d in Node. Cross-layer drift is
 * prevented by a grep-based pin test (translate-public test suite)
 * asserting every code here appears in that file. Update BOTH together.
 */
 
const SUPPORTED_LOCALES = ['id', 'th', 'vi', 'zh'];
 
module.exports = { SUPPORTED_LOCALES };