SAIF.Resources overview¶
Documentation context: Packaged Component (NuGet)
SAIF.Resources is a shared localization and template-resource library that packages strongly typed resource sets, template loaders, and lightweight mapping helpers for other SAIF applications.
Purpose¶
- Provide reusable English and Spanish resource strings across UI, business, application, and service-facing areas.
- Load text templates from either the file system or embedded assembly resources, then support token replacement against the loaded content.
- Expose helper types for supported-language enumeration, simple token metadata, and reflection-based projection of resource properties into consumer view models.
Responsibilities¶
- Package generated resource classes compiled from
.resxfiles underApplication,Business,Common,Services, andUI. - Support culture-aware template loading with a fallback chain from specific culture to neutral culture to default resource.
- Provide token discovery and replacement services for loaded text templates.
- Publish supported-language metadata for English and Spanish resource consumers.
- Provide a reflection-based helper for copying matching properties between source and destination types.
Key components¶
clsResourceManager,clsFileResourceManager,clsAssemblyResourceManager: template loading and token replacement.clsLanguageandmdlLanguages: supported-language metadata.ResourceViewModelMapper: reflection-based projection and scaffolding helper.- Generated
.Designer.vbresource classes and packaged static assets: localized string and content resources.
Related documentation¶
Sources¶
Resources\SAIF.Resources\SAIF.BOF.ResourceFiles.vbprojResources\SAIF.Resources\SAIF.BOF.ResourceFiles.nuspecResources\SAIF.Resources\clsResourceManager.vbResources\SAIF.Resources\clsFileResourceManager.vbResources\SAIF.Resources\clsAssemblyResourceManager.vbResources\SAIF.Resources\clsLanguage.vbResources\SAIF.Resources\mdlLanguages.vbResources\SAIF.Resources\Mappings\ResourceViewModelMapper.vbResources\SAIF.Resources\Resources\AppConstants.vbResources\SAIF.Resources\Resources\core.jsResources\SAIF.Resources\Resources\user_registrationverification_es.htmlResources\SAIF.Resources\Common\Common_UI.Designer.vbResources\SAIF.Resources\UI\UI_MyClaim.Designer.vb