- Phase 0: Rename all Kine references to Tabata (types, files, imports, i18n, analytics events) - Phase 1: Add test coverage for tabataProgramStore, workoutProgramStore, and color utils (47 tests) - Phase 2: Remove all `any` types from production code with proper typed replacements - Phase 3: Replace ~60 raw console.* calls with __DEV__-gated logger utility - Phase 4: Verify .DS_Store housekeeping (already clean) 0 TypeScript errors, 583/583 tests passing.
21 lines
587 B
JavaScript
21 lines
587 B
JavaScript
const fs = require('fs');
|
|
|
|
const langs = [
|
|
{ code: 'fr', text: 'Prêt à tout casser aujourd\'hui ?' },
|
|
{ code: 'es', text: '¿Listo para arrasar hoy?' },
|
|
{ code: 'de', text: 'Bereit, heute alles zu geben?' }
|
|
];
|
|
|
|
langs.forEach(({ code, text }) => {
|
|
const path = `src/shared/i18n/locales/${code}/screens.json`;
|
|
if (fs.existsSync(path)) {
|
|
let content = fs.readFileSync(path, 'utf8');
|
|
content = content.replace(
|
|
/"home":\s*\{/,
|
|
`"home": {\n "readyToCrush": "${text}",`
|
|
);
|
|
fs.writeFileSync(path, content);
|
|
console.log(`Updated ${code}`);
|
|
}
|
|
});
|