translation library

Properties

translator → GoogleTranslator
final

Functions

ensureFolderExists(String folderPath) → void
Creates the folder if it doesn't exist
extractKeys(String content) Map<String, String>
generateLocaleKeys(Map<String, String> keys) → void
loadJson(String path) Map<String, dynamic>
Loads existing JSON safely
runTranslationTool({String? srcFile, String? lang}) Future<void>
Main function called from CLI
updateJson(String lang, Map<String, String> keys, String sourceLang) Future<void>
Updates translation file for a specific language
writeFileSafely(String path, String content) → void
Ensures the folder exists and writes content to a file