Skip to content

Commit

Permalink
Update generate_translation_ts_file.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
rishi-raj-jain authored Jan 21, 2025
1 parent 9439fdc commit 01a7220
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/generate_translation_ts_file.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const localeFile = join(process.cwd(), 'src', 'services', 'locale.ts')

console.log(`Writing to src/services/locale.ts all the locales from the locales directory...`)
writeFileSync(localeFile, '// Do not edit this file\n// Auto-generated from generate_translation_ts_file.tsx code\n', { encoding: 'utf8' })
appendFileSync(localeFile, `export const locales = ${JSON.stringify(translationLocales)}\n`, { encoding: 'utf8' })
// the `defaultLocale` value must present in `locales` keys
const localeNameMap: Record<string, string> = {
en: 'en-US',
Expand Down

0 comments on commit 01a7220

Please sign in to comment.