ash prasad, may 28, 2015 (at dnn connect) sr. manager development, dnn corp. localization of js,...
DESCRIPTION
Architecture KO BindingsWebApi to Retrieve Keys Keys and ModifiedDateTime CachingLocalization APIsRESX FileTRANSCRIPT
Ash Prasad, May 28, 2015 (at DNN Connect)Sr. Manager Development, DNN Corp.Twitter: @ashishprasad
Localization of JS, CSS, HTML based UI in Evoq
DNN / Proprietary and Confidential. All Rights Reserved.2
Agenda
• Architecture• Resx caching – content and modified datetime• WebApi to retrieve culture specific resx• Saving Resx in browser’s local storage• Accessing localized content using KO bindings
Architecture
KO Bindings
WebApi to Retrieve Keys
Keys and ModifiedDateTime Caching
Localization APIs
RESX File RESX File RESX File
DNN / Proprietary and Confidential. All Rights Reserved.4
Resx Caching – Content and Modified DateTime
• Enumerate all resx files in module’s App_LocalResources folder• Cache all the keys in a dictionary based on culture• Cache the date time when file was modified
DNN / Proprietary and Confidential. All Rights Reserved.5
WebApi to retrieve culture specific resx
DNN / Proprietary and Confidential. All Rights Reserved.6
Saving Resx in browser’s local storage
DNN / Proprietary and Confidential. All Rights Reserved.7
Accessing localized content using KO bindings