arb_excel
library
Classes
-
ARBFilter
-
Describes a filter allowing to filter ARB items to be exported to Excel.
-
ARBItem
-
Describes an ARB record holding the translations and meta information for one message key.
-
Translation
-
Describes all arb records.
Functions
-
addDefaultCells(List<CellValue?> row, ARBItem item, String leadLocale)
→ void
-
-
baseFilename(String path)
→ String
-
-
determineLocale(String path)
→ String?
-
-
disableCells(Sheet sheetObject, int rowIdx, CellStyle disabledStyle)
→ void
-
-
-
mergeARB(List<String> filenames, Translation excelInputData, {ARBFilter? filter})
→ Translation
-
Read the existing translations from the ARB files defined by
filenames
and merge the data from an excel input into the ARB files.
-
parseARB(List<String> filenames, {List<String>? targetLocales, String? leadLocale, ARBFilter? filter, String? reviewMarkerProperty})
→ (Translation, List<String>)
-
Parses .arb files to Translation.
The
filename
is the main language arb file or the name of the directory.
-
parseExcel({required String filename, bool includeLeadLocale = false, int valueRow = _kRowValue})
→ Translation
-
Reads Excel sheet.
-
readArbItems(File f, Map<String, ARBItem> items, String locale, {ARBFilter? filter, String? reviewMarkerProperty})
→ void
-
-
writeARB(String inputFilename, List<String> filenames, Translation data, {required bool includeLeadLocale, bool merge = false, String? leadLocale, ARBFilter? filter})
→ void
-
Writes Translation to .arb files.
-
writeExcel(String filename, {required Translation data, required String leadLocale, required bool singleSheet})
→ void
-
Writes a Excel file, includes all translations.