Skip to content

Instantly share code, notes, and snippets.

@zholmes1
zholmes1 / createCSV.ts
Created September 11, 2021 22:14
React Native Translation System
import { writeFileSync } from 'fs'
import { map } from 'lodash'
import en from './src/localize/en'
const lines = map(en, (text, key) => {
return `"${key}","${text}"`
})
writeFileSync('english.csv', lines.join('\n'))