---
title: mdlLanguages
summary: API reference for mdlLanguages.
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-07-24
library: SAIF.Resources
reference_type: package
---


# mdlLanguages

Language helper module that publishes supported culture constants and builds a localized supported-language list.

## Purpose

- Define the supported language codes used by this library and expose them as a localized `IEnumerable(Of clsLanguage)` collection.

## Context

- Namespace: `SAIF.Resources`
- Assembly/package: `SAIF.ResourceFiles`

## Public members

| Member | Signature | Purpose |
| --- | --- | --- |
| `CULTURE_ENGLISH` | `Public Const CULTURE_ENGLISH As String = "en"` | Defines the neutral English culture code. |
| `CULTURE_SPANISH` | `Public Const CULTURE_SPANISH As String = "es"` | Defines the neutral Spanish culture code. |
| `LANGUAGE_CODE_SPANISH` | `Public Const LANGUAGE_CODE_SPANISH As String = "02"` | Defines the Spanish language code used by consumers of this module. |
| `CULTURE_ENGLISH_US` | `Public Const CULTURE_ENGLISH_US As String = "en-US"` | Defines the specific English (United States) culture code. |
| `CULTURE_SPANISH_MX` | `Public Const CULTURE_SPANISH_MX As String = "es-MX"` | Defines the specific Spanish (Mexico) culture code. |
| `SupportedCultures` | `Public Property SupportedCultures As String()` | Gets or sets the ordered culture codes returned by `SupportedLanguages`. |
| `SupportedLanguages` | `Public ReadOnly Property SupportedLanguages As IEnumerable(Of clsLanguage)` | Builds a localized list of supported languages from `SupportedCultures`. |

## Behavioral notes

- `SupportedLanguages` iterates `SupportedCultures` and maps `es` to `Common_UI.Spanish`; all other supported cultures map to `Common_UI.English`.
- `SupportedCultures` defaults to the ordered set `{CULTURE_ENGLISH, CULTURE_SPANISH}`.

## Constraints and usage notes

- The supported language list is limited to the cultures defined by the constants and `SupportedCultures` property.

## Sources

- `Resources\SAIF.Resources\mdlLanguages.vb`
- `Resources\SAIF.Resources\Common\Common_UI.Designer.vb`
- `Resources\SAIF.Resources\SAIF.BOF.ResourceFiles.vbproj`
