Skip to content

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 .resx files under Application, Business, Common, Services, and UI.
  • 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.
  • clsLanguage and mdlLanguages: supported-language metadata.
  • ResourceViewModelMapper: reflection-based projection and scaffolding helper.
  • Generated .Designer.vb resource classes and packaged static assets: localized string and content resources.

Sources

  • Resources\SAIF.Resources\SAIF.BOF.ResourceFiles.vbproj
  • Resources\SAIF.Resources\SAIF.BOF.ResourceFiles.nuspec
  • Resources\SAIF.Resources\clsResourceManager.vb
  • Resources\SAIF.Resources\clsFileResourceManager.vb
  • Resources\SAIF.Resources\clsAssemblyResourceManager.vb
  • Resources\SAIF.Resources\clsLanguage.vb
  • Resources\SAIF.Resources\mdlLanguages.vb
  • Resources\SAIF.Resources\Mappings\ResourceViewModelMapper.vb
  • Resources\SAIF.Resources\Resources\AppConstants.vb
  • Resources\SAIF.Resources\Resources\core.js
  • Resources\SAIF.Resources\Resources\user_registrationverification_es.html
  • Resources\SAIF.Resources\Common\Common_UI.Designer.vb
  • Resources\SAIF.Resources\UI\UI_MyClaim.Designer.vb