generateArbFile static method

String generateArbFile(
  1. String languageCode
)

Implementation

static String generateArbFile(String languageCode) {
  final translations = _getTranslations(languageCode);

  return '''
{
"@@locale": "$languageCode",
"appTitle": "${translations['appTitle']}",
"welcome": "${translations['welcome']}",
"hello": "${translations['hello']}",
"login": "${translations['login']}",
"signup": "${translations['signup']}",
"email": "${translations['email']}",
"password": "${translations['password']}",
"username": "${translations['username']}",
"phone": "${translations['phone']}",
"forgotPassword": "${translations['forgotPassword']}",
"home": "${translations['home']}",
"profile": "${translations['profile']}",
"settings": "${translations['settings']}",
"logout": "${translations['logout']}",
"save": "${translations['save']}",
"cancel": "${translations['cancel']}",
"delete": "${translations['delete']}",
"edit": "${translations['edit']}",
"search": "${translations['search']}",
"loading": "${translations['loading']}",
"error": "${translations['error']}",
"success": "${translations['success']}",
"confirm": "${translations['confirm']}",
"yes": "${translations['yes']}",
"no": "${translations['no']}",
"back": "${translations['back']}",
"next": "${translations['next']}",
"skip": "${translations['skip']}",
"done": "${translations['done']}",
"viewAll": "${translations['viewAll']}",
"noDataFound": "${translations['noDataFound']}",
"chatbot": "${translations['chatbot']}",
"typeMessage": "${translations['typeMessage']}",
"thinking": "${translations['thinking']}",
"selectLanguage": "${translations['selectLanguage']}",
"welcomeDeveloper": "${translations['welcomeDeveloper']}",
"startCodingMessage": "${translations['startCodingMessage']}",
"photoGallery": "${translations['photoGallery']}",
"takePhoto": "${translations['takePhoto']}",
"pickImage": "${translations['pickImage']}",
"viewPhotos": "${translations['viewPhotos']}",
"calling": "${translations['calling']}",
"makeACall": "${translations['makeACall']}",
"quicklyDialNumber": "${translations['quicklyDialNumber']}",
"startCall": "${translations['startCall']}",
"contacts": "${translations['contacts']}",
"pickContact": "${translations['pickContact']}",
"savedContacts": "${translations['savedContacts']}",
"call": "${translations['call']}",
"copy": "${translations['copy']}",
"aiAssistant": "${translations['aiAssistant']}",
"chatWithAI": "${translations['chatWithAI']}",
"askQuestionsInstant": "${translations['askQuestionsInstant']}",
"photoCapturedSuccess": "${translations['photoCapturedSuccess']}",
"imageAddedGallery": "${translations['imageAddedGallery']}",
"deletePhoto": "${translations['deletePhoto']}",
"deletePhotoConfirm": "${translations['deletePhotoConfirm']}",
"photoDeleted": "${translations['photoDeleted']}",
"callError": "${translations['callError']}",
"enterPhoneNumber": "${translations['enterPhoneNumber']}",
"phoneNumberHint": "${translations['phoneNumberHint']}",
"contactSelected": "${translations['contactSelected']}",
"numberCopied": "${translations['numberCopied']}",
"contactAlreadySaved": "${translations['contactAlreadySaved']}",
"contactSaved": "${translations['contactSaved']}",
"savedContactsTitle": "${translations['savedContactsTitle']}",
"contactDeleted": "${translations['contactDeleted']}",
"errorMessage": "${translations['errorMessage']}",
"photoGalleryTitle": "${translations['photoGalleryTitle']}",
"currentLocation": "${translations['currentLocation']}",
"getCurrentGPS": "${translations['getCurrentGPS']}",
"getLocation": "${translations['getLocation']}",
"latitude": "${translations['latitude']}",
"longitude": "${translations['longitude']}",
"altitude": "${translations['altitude']}",
"accuracy": "${translations['accuracy']}",
"copyCoordinates": "${translations['copyCoordinates']}"
}
''';
}