json_to_arb
library
Functions
-
checkFiles(List<LangaugeModel> languages)
→ bool
-
-
config()
→ JsonToArbModel
-
-
consistancyChecker(List<LangaugeModel> languages, JsonToArbModel model)
→ void
-
-
convertJsonsToOneArb(List<LangaugeModel> languages)
→ void
-
Converts a list of language JSON files to a single ARB format.
Handles empty and malformed JSON files gracefully.
-
flattenJson(Map<String, dynamic> json, {String parentKey = ''})
→ Map<String, dynamic>
-
-
getJsonFiles(String source, String locale)
→ List<File>
-
-
getLanguages(String source, List<String> locales)
→ List<LangaugeModel>
-
-
getYamlFileFromPubspec()
→ YamlMap
-
-
handleJsonFileErrors(String fileContent, String filePath)
→ void
-
Handles JSON file content errors: empty, malformed, or wrong root type.
-
main(List<String> arguments)
→ void
-
-
readAllJsonFilesForLanguage(LangaugeModel language, JsonToArbModel model)
→ Map<String, dynamic>
-
Reads all JSON files for a language and returns combined content
-
readAndProcessJsonFile(File jsonFile, JsonToArbModel model)
→ Map<String, dynamic>
-
Reads and processes JSON file content with error handling.