Skip to content

Instantly share code, notes, and snippets.

@ianjorgensen
Last active August 10, 2017 11:05
Show Gist options
  • Save ianjorgensen/5ccfa0250b36e12d989c089967ac643f to your computer and use it in GitHub Desktop.
Save ianjorgensen/5ccfa0250b36e12d989c089967ac643f to your computer and use it in GitHub Desktop.
var dictionary = function(lang) {
var languages = {
// SYTEM WIDE COMMONALITIES AND STYLEGUIDE ELEMENTS
common: {
brickTypes: {
_speciality: {
en: 'Specialitys'
},
// todo: chose either witness or lateral flow and be consistent
_witness: {
en: 'Witness'
},
_lateralFlow: {
en: 'Lateral Flow'
}
},
animals: {
_equine: {
en: 'equine'
},
_canine: {
en: 'canine'
},
_feline: {
en: 'feline'
}
},
states: {
_initializing: {
en: 'Initializing...'
},
_inUse: {
en: 'In Use'
},
_connecting: {
en: 'connecting...'
},
_connect: {
en: 'Connect'
},
_disconnected: {
en: 'Disconnected'
},
_detected: {
en: 'Detected'
},
_disconnect: {
en: 'Disconnect'
},
_connected: {
en: 'Connected'
},
_notConnected: {
en: 'Not Connected'
},
_update: {
en: 'Update'
},
_updating: {
en: 'updating...'
},
_upToDate: {
en: 'Up To Date'
}
},
styleGuide: {
toggle: {
_on: {
en: 'ON'
},
_off: {
en: 'OFF'
}
},
button: {
_home: {
en: 'Home'
},
_print: {
en: 'Print'
},
_skip: {
en: 'Skip'
},
_next: {
en: 'Next'
},
_cancel: {
en: 'Cancel'
},
_done: {
en: 'Done'
},
_advice: {
en: 'Advice'
},
_start: {
en: 'Start'
},
_back: {
en: 'Back'
},
_dismiss: {
en: 'Dismiss'
},
_quitTest: {
en: 'Quit Test'
}
}
},
legends: {
_normalRange: {
en: 'Normal'
},
_sanityRange: {
en: 'Out of range'
},
}
},
label: {
_required: {
en: 'Required'
},
patientInfo: {
_patientInfo: {
en: 'Patient Info'
},
_name: {
en: 'Name'
},
_age: {
en: 'Age'
},
_dob: {
en: 'Date of Birth'
},
_breed: {
en: 'Breed'
},
breeds: {
// todo: create list of species
},
_gender: {
en: 'Gender'
},
_patientID: {
en: 'Patient ID'
},
_spayed: {
en: 'Spayed'
}
},
orderInfo: {
_orderInfo: {
en: 'Order Info'
},
_doctor: {
en: 'Doctor Name'
},
_technician: {
en: 'Technician Name'
},
_requisition: {
en: 'Requisition ID'
},
_notificationEmail: {
en: 'Notification Email'
}
},
testInfo: {
_catridgeID: {
en: 'Cartridge ID'
},
_hermatocrit: {
en: 'Hermatocrit'
},
_sampleSize: {
en: 'Sample Size'
}
},
clientInfo: {
_clientInfo: {
en: 'Client Info'
},
_clientFirstName: {
en: 'Client First Name'
},
_clientLasttName: {
en: 'Client Last Name'
},
_clientName: {
en: 'Client Name'
},
_clientID: {
en: 'Client ID'
},
_clientEmail: {
en: 'Client Email'
},
_clientPhone: {
en: 'Client Phone Number'
},
_clientPhone: {
en: 'Client Phone Number'
},
},
clinicInfo: {
_clinicInfo: {
en: 'Clinic Info'
},
_clinicName: {
en: 'Clinic Name'
},
_vetName: {
en: 'Vet Name'
},
_address: {
en: 'Address'
},
_addressLine: {
en: 'Address Line'
},
_city: {
en: 'City'
},
_state: {
en: 'State'
},
_zip: {
en: 'Zipcode'
},
_phone: {
en: 'Telephone'
},
_fax: {
en: 'Fax'
},
_email: {
en: 'Email'
},
_web: {
en: 'Website'
},
}
},
sidebar: {
menu: {
_home: {
en: 'Home'
},
_results: {
en: 'Results'
},
_settings: {
en: 'Settings'
}
},
printPopup: {
_title: {
en: 'Print'
},
_subTitle: {
en: 'Automatic Printing'
},
// TOGGLE TEXT SET BY this.common.styleguide.toggle.*
},
wifiPopup: {
_title: {
en: 'Join an existing WiFi network'
},
_subTitle: {
en: '<%=p0%> Wireless Networks Found'
},
// GET CONNECT BUTTON TEXT FROM .common.styleguide.button._connect
pwInput: {
_enterPassword: {
en: 'Enter Password'
}
// GET STATUS FROM this.common.states._connecting
},
_status: {
en: 'Status'
// GET STATUS FROM this.common.states._*
},
_security: {
en: 'WPA/WPA2'
// todo: do security types need localization?
},
_noWIFI: {
en: 'No WIFI networks detected...'
}
}
},
frame: {
home: {
homeInstruments: {
_findATest: {
en: 'Find a Test'
},
_connect: {
en: 'Connect Instrument'
},
_welcomeTitle: {
en : 'Welcome to'
},
_welcomeMessage: {
en: 'Lorem ipsum dolor sit amet, nisl magni pede donec iaculis elit dictum, vestibulum ultricies libero dapibus dolor rhoncus in, orci sapien dui arcu vitae dui vitae, mi pellentesque facilisi nisl lobortis turpis venenatis.'
}
},
homeResults: {
_results: {
en: 'Results'
},
_empty: {
en: 'To see results, connect an instrument and run a test.'
}
}
},
settings: {
_sidePaneTitle: {
en: 'Settings'
},
helpInfo: {
_title: {
en: 'Need Help?'
}
},
instruments: {
_menuItem: {
en: 'Instruments'
},
_mainTitle: {
en: 'Manage Instruments'
},
content: {
_instrument: {
en: 'Instrument'
},
_inUse: {
en: 'In Use'
},
instrumentSelected: {
_backupButton: {
en: 'Backup Diagnostics'
},
selfTest: {
_title: {
en: 'Self Test'
},
_subTitle: {
en: "Last Tested <%=p0%>"
},
_actionBttn: {
en: 'Test'
}
},
calibration: {
_title: {
en: 'Calibration'
},
_subTitle: {
en: 'Last Calibrated <%=p0%>'
},
_actionBttn: {
en: 'Calibrate'
}
},
serviceMode: {
_title: {
en: 'Service Mode'
},
_actionBttn: {
en: 'Service'
}
},
unpair: {
_title: {
en: 'Unpair Instrument'
},
_subTitle: {
en: 'Remove instrument and all its data from the system'
},
_actionBttn: {
en: 'Unpair'
}
},
reset: {
_title: {
en: 'Reset Instrument'
},
_subTitle: {
en: 'Restores instrument to factory settings'
},
_actionBttn: {
en: 'Reset'
}
},
update: {
_title: {
en: 'Software v<%=p0%>'
},
subTitle: {
_updateYes: {
en: 'Updates available'
},
_updateNo: {
en: 'Software is up to date'
}
},
_actionBttn: {
en: 'Update'
},
unpairPopup: {
_title: {
en: 'Unpair Instrument'
},
_text: {
en: 'Are you sure you want to unpair the instrument? This action cannot be undone.'
},
_cancelBttn: {
en: 'Cancel'
},
_unpairBttn: {
en: 'Unpair'
}
}
}
}
}
},
system: {
_menuItem: {
en: 'System'
},
clinicInfo: {
_menuItem: {
en: 'Clinic Info'
},
_mainTitle: {
en: 'Clinic Information'
},
_subTitle: {
en: 'Click to edit clinic information'
},
// ALL CLINIC INFO IS STORED IN this.datModel.clinicInfo.*
},
pimsIntegration: {
_menuItem: {
en: 'PIMS Integration'
},
_mainTitle: {
en: 'PIMS Integration'
},
_subTitle: {
en: 'Integrate the Zoetis system to your Practice Information Managament system. If your use one of the follwoing systems, we can request integration.'
},
integrationsList: {
// todo: do these need translation? They are commercial names
},
_actionBttn: {
en: 'Request Integration'
},
requestSubmitted: {
_mainTitle: {
en: 'Request Submitted'
},
_markupText: {
en: 'We have submitted a request to XXXX, who is going to contact you within 1-2 business days to complete integration free of charge. In the meantime, go ahead and create some billing codes to map to your PIMS. You will need them to complete the integration.'
} // todo: fix, add real markup
},
integrationSetup: {
_removeIntBttn: {
en: 'Remove Integration'
},
table: {
_tableTitle: {
en: 'Map billing codes'
},
_headerTestType: {
en: 'Test type/cartridge'
},
_headerDeviceType: {
en: 'Device Type'
},
_headerBillingCode: {
en: 'Billing Code'
},
_dropDownDefault: {
en: 'please select a code...'
}
}
}
},
localization: {
_menuItem: {
en: 'Localization'
},
_mainTitle: {
en: 'Language & Region'
},
language: {
_title: {
en: 'Language'
},
_subTitle: {
en: 'Default: United States (English)'
},
_dropDownDefault: {
en: 'Select Language'
}
},
region: {
_title: {
en: 'Region'
},
_subTitle: {
en: 'Default: United States'
},
_dropDownDefault: {
en: 'Select Region'
}
},
formatExample: {
_title: {
en: 'Regional Format Example'
},
_subTitle: {
en: '<%=p0%>, <%=p1%> <%=p2%> <%=p3%> at <%=p4%>'
},
_dropDownDefault: {
en: 'Select Language'
}
},
time: {
_title: {
en: 'Time'
},
_subTitle: {
en: '24-Hour Time'
}
},
timeAuto: {
_title: {
en: 'Set Time Zone Automatically'
},
_subTitle: {
en: '<%=p0%>'
}
}
},
requiredFields: {
_menuItem: {
en: 'Required Fields'
},
_mainTitle: {
en: 'Required Fields'
},
_subTitle: {
en: 'Test Setup'
},
requiredList: {
_headerToggle: {
en: 'On/Off'
},
_headerRequired: {
en: 'Required'
},
patientInfo: {
_title: {
en: 'Patient Info'
//todo: Inject list here and use in test flow setup
}
},
orderInfo: {
_title: {
en: 'Order Info'
// todo: Inject list here and use in test flow setup
}
}
}
}
},
support: {
_menuItem: {
en: 'Support'
},
help: {
_menuItem: {
en: 'Help'
},
_mainTitle: {
en: 'Help'
},
faq: {
_title: {
en: 'FAQ'
},
markup: {
en: '' // todo: define the markup and write it here
}
}
},
about:{
_menuItem: {
en: 'About Karysta'
},
_mainTitle: {
en: 'About Karysta'
},
about: {
_liTitle: {
//DISCUSS WITH IAN
en: 'About'
},
_liMarkup: {
en: '' // todo: define the markup and write it here
}
},
legal: {
_liTitle: {
en: 'Legal'
},
_liMarkup: {
en: '' // todo: define the markup and write it here
}
},
eula: {
_liTitle: {
en: 'EULA'
},
_liMarkup: {
en: '' // todo: define the markup and write it here
}
}
},
software: {
_menuItem: {
en: 'Software'
},
_mainTitle: {
en: 'Software'
},
systemSoftware: {
_title: {
en: 'System Software'
},
_subTitle: {
en: 'Software Version <%=p0%>'
},
_actionBttn: {
en: 'Update'
}
},
systemReset: {
_title: {
en: 'System Factory Reset'
},
_subTitle: {
en: 'Restore system and instruments to original settings'
},
_note: {
en: 'Note: This action cannot be undone. All data will be lost.'
},
_actionBttn: {
en: 'Reset'
}
},
table: {
_tableInstrument: {
en: 'Instrument'
},
_headerSerial: {
en: 'Serial Number'
},
_headerSoftVersion: {
en: 'Software Version'
},
headerStatus: {
_inUse: {
en: 'In Use'
},
_update: {
en: 'Update'
},
_upToDate: {
en: 'Up To Date'
},
}
// todo: release notes only in english? Otherwise it will need recuring translation to all languages, every time we have a new release
}
}
},
seviceLogin: {
_menuItem: {
en: 'Service Login'
},
_mainTitle: {
en: 'Service Login'
}
},
},
results: {
_title: {
en: 'Showing <%=p0%> Results'
},
_actionBttn: {
en: 'Resend To PIMS'
},
table: {
_headerName: {
en: 'Name'
},
_headerTestType: {
en: 'Test Type'
},
_headerResults: {
en: 'Result'
},
_headerDate: {
en: 'Date Complete'
}
}
},
template: {
// SPECIES & TEST SELECTION //
selectSpecies: {
_state: {
en: 'Select a species'
}
},
selectTest: {
_state: {
en: 'Choose a Test'
},
_message: {
en: 'Please chose a test...'
}
},
// TEST SPECIFIC INFO //
testInfo: {
_state: {
en: 'Test Specific Information'
},
// FORM LABEL TRANSLATIONS ARE DEFINED IN dataLabels.*
},
// GENERAL INFO //
generalInfo: {
_state: {
en: 'General Information'
},
_advancedInfo: {
en: 'Advanced Info'
}
// FORM LABEL TRANSLATIONS ARE DEFINED IN this.dataLabels.*
},
// COMMONALITIES ACROSS ALL TEST TYPES //
idle: {
_state: {
en: 'Setup test'
}
},
insert: {
_state: {
en: 'Insert cartridge'
}
},
samplePrep: {
_state: {
en: 'Prepare sample'
}
},
applySample: {
_state: {
en: 'Apply sample'
},
_message: {
en: 'waiting for sample...'
}
},
analyzing: {
_state: {
en: 'Analyzing'
},
_message: {
en: 'please wait...'
},
_caption: {
en: '<%=p0%> remaining...'
}
},
result: {
_state: {
en: 'Test result'
}
},
remove: {
_state: {
en: 'Remove cartridge'
}
},
// SPECIALITY SPECIFIC DICTIONARY
speciality: {
_brickType: {
en: 'Speciality'
},
testType: {
_coag: {
en: 'PT/aPTT Coag Combo'
},
_equineFib: {
en: 'Equine Fibrinogen'
},
_canineFib: {
en: 'Canine Fibrinogen'
},
_canineBloodTyping: {
en: 'Canine DEA 1.1 Blood Typing'
},
_felineBloodTyping: {
en: 'Feline Blood Typing'
},
//////////////////////////////////////
// Canine Phenobarbital – TBD //
//////////////////////////////////////
_fibrinogenCalibration: {
en: 'Fibrinogen Calibration'
}
},
samplePrep: {
_message: {
en: 'cartridge warming up...'
},
coag: {
_title: {
en: 'Blood sample in citrate test tube'
},
_description: {
en: 'Please ensure that the sample has been obtained in a citrate tets tube. The tube must be filled to the appropriate fill-line.',
}
},
equineFib: {
_title: {
en: '100 &#xb5;L plasma from citrate test tube & diluent'
},
_description: {
en: 'Please ensure that the plasma sample has been obtained in a citrate test tube. Use the 100 &#xb5;L pipette and tip to extract 100 &#xb5;L from sample into supplied prefilled micro tube. Mix carefully using pipette by aspirating minimum 5 times.',
}
},
canineFib: {
_title: {
en: '100 &#xb5;L plasma from citrate test tube & diluent'
},
_description: {
en: 'Please ensure that the plasma sample has been obtained in a citrate test tube. Use the 100 &#xb5;L pipette and tip to extract 100 &#xb5;L from sample into supplied prefilled micro tube. Mix carefully using pipette by aspirating minimum 5 times.',
}
},
canineBloodTyping: {
_title: {
en: '100 &#xb5;L wholeblood from EDTA test tube & <%= p0 %> drops of diluent',
},
_description: {
en: 'Please ensure that the plasma sample has been obtained in a EDTA test tube filled to the appropriate fill line. Use the 100 &#xb5;L pipette and tip to extract 100 &#xb5;L from sample into supplied prefilled micro tube. Mix carefully using pipette by aspirating minimum 5 times.',
}
},
felineBloodTyping: {
_title: {
en: '<%= p0 %> &#xb5;L wholeblood from EDTA test tube mixed into micro-tube with diluent',
},
_description: {
en: 'Please ensure that the plasma sample has been obtained in a EDTA test tube filled to the appropriate fill line. Use the 100 &#xb5;L pipette and tip to extract x &#xb5;L from sample into supplied prefilled micro tube. Mix carefully using pipette by aspirating minimum 5 times.',
}
},
//////////////////////////////////////
// Canine Phenobarbital – TBD //
//////////////////////////////////////
},
cartridgeWarmup: {
_state: {
en: 'Cartridge warming up'
},
_message: {
en: 'please wait...'
}
},
result: {
// THE FOLLOWING CONTAINS THE UNIQUE **SAMPLE PREP** CONTENT FOR EACH TEST TYPE
coag: {
pt: {
_cardTitle: {
en: 'PT',
},
_unit: {
en: 'seconds'
},
},
aptt: {
_cardTitle: {
en: 'aPTT',
},
_unit: {
en: 'seconds'
}
}
},
equineFib: {
_cardTitle: {
en: 'Equine Fibrinogen',
},
_unit: {
en: 'g/L'
}
},
canineFib: {
_cardTitle: {
en: 'Canine Fibrinogen',
},
_unit: {
en: 'g/L'
}
},
canineBloodTyping: {
_cardTitle: {
en: 'Canine DEA 1.1 Blood Typing',
},
result: {
_negative: {
en: 'DEA 1 Negative',
},
_positive: {
en: 'DEA 1 Positive',
},
_inconclusive: {
en: 'Inconclusive',
},
_auto: {
en: 'Auto-agglutination',
}
}
},
felineBloodTyping: {
_cardTitle: {
en: 'Feline Blood Typing',
},
result: {
_a: {
en: 'Blood Type A',
},
_b: {
en: 'Blood Type B',
},
_ab: {
en: 'Blood Type AB',
},
_inconclusive: {
en: 'Inconclusive',
},
_auto: {
en: 'Auto-agglutination',
}
}
}
//////////////////////////////////////
// Canine Phenobarbital – TBD //
//////////////////////////////////////
},
// CALIBRATION FLOW
fibrinogenCalibration: {
insert: {
_state: {
en: 'Insert calibration cartridge <%= p0 %>/3'
},
_message: {
}
},
samplePrep: {
_state: {
en: 'Prepare calibration sample'
},
_message: {
en: 'cartridge warming up...'
},
instruction: {
_title: {
en: 'Please prepare samples following instructions in package insert'
},
_description: {
en: 'Fibronogen calibration is neccesary at approiate intervals to ensure that fibrinogen test-result are correct.',
}
}
},
cartridgeWarmup: {
_state: {
en: 'Calibration cartridge <%=p0%>/3'
},
_message: {
en: 'warming up...'
}
},
applySample: {
_state: {
en: 'Apply sample <%=p0%>/3'
},
_message: {
en: 'waiting for sample...'
},
instruction: {
_caption: {
en: '100 &#xb5;L <%=p0%>'
}
}
},
analyzing: {
_state: {
en: 'Analyzing <%=p0%>/3'
},
_message: {
en: 'please wait...'
},
instruction: {
_caption: {
en: '<%=p0%> remaining...'
}
}
},
remove: {
_state: {
en: 'Remove calibration cartridge <%=p0%>/3'
},
},
success: {
_state: {
en: 'Fibrinogen calibration succesful'
},
},
failure: {
_state: {
en: 'Fibrinogen calibration failed'
},
}
}
},
// LATERAL FLOW SPECIFIC DICTIONARY
witness: {
_brickType: {
en: 'Witness Lateral Flow'
},
testType: {
_felv: {
en: 'FeLV'
},
_fiv: {
en: 'FIV'
},
_felvFiv: {
en: 'FeLV-FIV'
},
_dirofilia: {
en: 'Dirofilia'
},
_canineDirofilia: {
en: 'Canine Dirofilia'
},
_felineDirofilia: {
en: 'Feline Dirofilia'
},
_ehrlichia: {
en: 'Ehrlichia'
},
_canineEhrlichia: {
en: 'Canine Ehrlichia'
},
_felineEhrlichia: {
en: 'Feline Ehrlichia'
},
_relaxin: {
en: 'Relaxin'
},
_canineRelaxin: {
en: 'Relaxin'
},
_leishmania: {
en: 'Leishmania'
},
_canineLeishmania: {
en: 'Canine Leishmania'
},
_felineLeishmania: {
en: 'Feline Leishmania'
},
_parvovirus: {
en: 'Parvovirus'
},
_giardia: {
en: 'Giardia'
},
_lh: {
en: 'LH'
},
_ffh: {
en: 'FFH'
},
_lepto: {
en: 'Lepto'
}
},
samplePrep: {
felv: {
_title: {
en: 'Anicoagulated whole blood (heparin, EDTA), serum or plasma'
},
_description: {
en: 'If you chose whole blood, please ensure that the sample has been obtained in a heparin or EDTA test tube. The tube must be filled to the appropriate fill-line.'
}
},
fiv: {
_title: {
en: 'Anicoagulated whole blood (heparin, EDTA), serum or plasma'
},
_description: {
en: 'If you chose whole blood, please ensure that the sample has been obtained in a heparin or EDTA test tube. The tube must be filled to the appropriate fill-line.'
}
},
felvFiv: {
_title: {
en: 'Anicoagulated whole blood (heparin, EDTA), serum or plasma'
},
_description: {
en: 'If you chose whole blood, please ensure that the sample has been obtained in a heparin or EDTA test tube. The tube must be filled to the appropriate fill-line.'
}
},
canineDirofilia: {
_title: {
en: 'Anicoagulated whole blood (heparin, EDTA), serum or plasma'
},
_description: {
en: 'If you chose whole blood, please ensure that the sample has been obtained in a heparin or EDTA test tube. The tube must be filled to the appropriate fill-line.'
}
},
felineDirofilia: {
_title: {
en: 'Anicoagulated whole blood (heparin, EDTA), serum or plasma'
},
_description: {
en: 'If you chose whole blood, please ensure that the sample has been obtained in a heparin or EDTA test tube. The tube must be filled to the appropriate fill-line.'
}
},
canineEhrlichia: {
_title: {
en: 'Anicoagulated whole blood (heparin, EDTA), serum or plasma'
},
_description: {
en: 'If you chose whole blood, please ensure that the sample has been obtained in a heparin or EDTA test tube. The tube must be filled to the appropriate fill-line.'
}
},
felineEhrlichia: {
_title: {
en: 'Anicoagulated whole blood (heparin, EDTA), serum or plasma'
},
_description: {
en: 'If you chose whole blood, please ensure that the sample has been obtained in a heparin or EDTA test tube. The tube must be filled to the appropriate fill-line.'
}
},
canineRelaxin: {
_title: {
en: 'Serum or plasma'
},
_description: {
en: 'Do NOT use whole blood. The tube must be filled to the appropriate fill-line.'
}
},
canineLeishmania: {
_title: {
en: 'Anicoagulated whole blood (heparin, citrate), serum or plasma'
},
_description: {
en: 'If you chose whole blood, please ensure that the sample has been obtained in a heparin or citrate test tube. The tube must be filled to the appropriate fill-line.'
}
},
felineLeishmania: {
_title: {
en: 'Anicoagulated whole blood (heparin, citrate), serum or plasma'
},
_description: {
en: 'If you chose whole blood, please ensure that the sample has been obtained in a heparin or citrate test tube. The tube must be filled to the appropriate fill-line.'
}
},
parvovirus: {
_title: {
en: 'Anicoagulated whole blood (heparin, citrate), serum or plasma'
},
_description: {
en: 'If you chose whole blood, please ensure that the sample has been obtained in a heparin or citrate test tube. The tube must be filled to the appropriate fill-line.'
}
},
giardia: {
_title: {
en: 'Anicoagulated whole blood (heparin, citrate), serum or plasma'
},
_description: {
en: 'If you chose whole blood, please ensure that the sample has been obtained in a heparin or citrate test tube. The tube must be filled to the appropriate fill-line.'
}
},
lh: {
_title: {
en: 'Serum only'
},
_description: {
en: 'Test can only be performed on serum. The tube must be filled to the appropriate fill-line.'
}
},
ffh: {
_title: {
en: 'Whole blood in heparin or EDTA test tube'
},
_description: {
en: 'Please ensure that the sample has been obtained in a heparin or EDTA tets tube. The tube must be filled to the appropriate fill-line.'
}
},
lepto: {
_title: {
en: 'Whole blood in heparin or citrate test tube'
},
_description: {
en: 'Please ensure that the sample has been obtained in a heparin or citrate tets tube. The tube must be filled to the appropriate fill-line.'
}
}
},
result: {
_positive: {
en: 'Positive'
},
_negative: {
en: 'Negative'
},
image: {
_control: {
en: 'C'
},
_test: {
en: 'T'
}
},
felv: {
_cardTitle: {
en: 'Felv',
},
_unit: {
en: ''
}
},
fiv: {
_cardTitle: {
en: 'FIV',
},
_unit: {
en: ''
}
},
felvFiv: {
felv: {
_cardTitle: {
en: 'Felv',
},
_unit: {
en: ''
}
},
fiv: {
_cardTitle: {
en: 'FIV',
},
_unit: {
en: ''
}
}
},
canineDirofilia: {
_cardTitle: {
en: 'Canine Dirofilia',
},
_unit: {
en: ''
}
},
felineDirofilia: {
_cardTitle: {
en: 'Feline Dirofilia',
},
_unit: {
en: ''
}
},
canineEhrlichia: {
_cardTitle: {
en: 'Canine Ehrlichia',
},
_unit: {
en: ''
}
},
felineEhrlichia: {
_cardTitle: {
en: 'Feline Ehrlichia',
},
_unit: {
en: ''
}
},
canineRelaxin: {
_cardTitle: {
en: 'Canine Relaxin',
},
_unit: {
en: ''
}
},
canineLeishmania: {
_cardTitle: {
en: 'Canine Leishmania',
},
_unit: {
en: ''
}
},
felineLeishmania: {
_cardTitle: {
en: 'Feline Leishmania',
},
_unit: {
en: ''
}
},
parvovirus: {
_cardTitle: {
en: '<%=p0%> Parovirus',
},
_unit: {
en: ''
}
},
giardia: {
_cardTitle: {
en: '<%=p0%> Giardia',
},
_unit: {
en: ''
}
},
lh: {
_cardTitle: {
en: 'Canine LH',
},
_unit: {
en: ''
}
},
ffh: {
felv: {
_cardTitle: {
en: 'Felv',
},
_unit: {
en: ''
}
},
fiv: {
_cardTitle: {
en: 'FIV',
},
_unit: {
en: ''
}
},
lh: {
_cardTitle: {
en: 'LH',
},
_unit: {
en: ''
}
},
lepto: {
_cardTitle: {
en: 'Canine Lepto',
},
_unit: {
en: ''
}
}
}
}
}
}
},
error: {
instrument: {
ok: {
en: ''
},
bloodInWrongOrder: {
en: ''
},
bloodInNotDetected: {
en: ''
},
ch0OutOfRangeLow: {
en: ''
},
ch0OutOfRangeHigh: {
en: ''
},
ch1OutOfRangeLow: {
en: ''
},
ch1OutOfRangeHigh: {
en: ''
},
flowTooFast: {
en: ''
},
flowTooSlow: {
en: ''
},
sampleAddedTooEarly: {
en: ''
},
noContactToPcb: {
en: ''
},
userCancel: {
en: ''
},
tempTooLow: {
en: ''
},
tempTooHigh: {
en: ''
},
signalCh0Low: {
en: ''
},
signalCh1Low: {
en: ''
},
signalChAllLow: {
en: ''
},
signalCh0High: {
en: ''
},
signalCh1High: {
en: ''
},
signalChAllHigh: {
en: ''
},
noCartridgeDetected: {
en: ''
},
bloodAgglutinated: {
en: ''
},
signalCh0LowCh1High: {
en: ''
},
signalCh1LowCh0High: {
en: ''
},
badLisCommunication: {
en: ''
},
testError: {
en: ''
},
autoAgglutination: {
en: ''
},
badSampleDilution: {
en: ''
},
notUsed28: {
en: ''
},
wrongCalibrationCode: {
en: ''
},
sevenDigitWrongCodeLength: {
en: ''
},
sevenDigitChecksumError: {
en: ''
},
sevenDigitFormat32Error: {
en: ''
},
sevenDigitUnknownTestType: {
en: ''
},
sevenDigitFormat34Error: {
en: ''
},
sevenDigitCartridgeExpired: {
en: ''
},
internalError: {
en: ''
},
sensorSaturated: {
en: ''
},
noiseLevelLimit: {
en: ''
},
hemolyzedSample: {
en: ''
}
},
errorInstrument: {
_state: {
en: '<%=p0%> Instrument Error'
},
_message: {
en: 'Test Sample Compromised'
},
_textMarkup: {
en: '' // todo: define the markup and write it here
}
// QUIT TEST BUTTON TRANSLATED IN common.styleGuide.button.*
},
errorSystem: {
_state: {
en: 'System Error'
},
_seeMore: {
en: 'See More'
},
_textMarkup: {
en: '' // todo: define the markup and write it here
}
// DISMISS BUTTON TRANSLATED IN common.styleGuide.button.*
}
}
}
return function(path) {
var keys = path.split('.')
keys.push(lang)
var section = languages
for (var i in keys) {
var key = keys[i]
section = section[key]
}
return section || 'KEY NOT FOUND!!';
}
};
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined')
module.exports = dictionary;
else
window.dictionary = dictionary('en');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment