english_locale
¶
EnglishLocale
¶
Bases: BaseModelWithoutExtraKeys
flag_emoji
cached
property
¶
Get flag emoji for the locale's primary country.
Why
Flag emojis are displayed next to locale names in the UI. Deriving flags here keeps the mapping in one place alongside the ISO language codes.
Returns:
-
str–Flag emoji string (e.g., "🇬🇧" for English).
is_rtl
cached
property
¶
Check if language uses right-to-left text direction.
Returns:
-
bool–True if language is RTL (Arabic, Hebrew, Persian, Urdu, etc.)
language = pydantic.Field(default='english', description='The language for your CV. The default value is `english`.')
class-attribute
instance-attribute
¶
language_iso_639_1
cached
property
¶
Get ISO 639-1 two-letter language code for locale.
Why
Typst's text element requires ISO 639-1/2/3 language codes for the lang parameter. This enables proper hyphenation, smart quotes, and accessibility (screen readers use it for voice selection). HTML export also uses it for lang attribute.
Returns:
-
str–Two-letter ISO 639-1 language code for Typst and HTML.
last_updated = pydantic.Field(default='Last updated in', description='Translation of "Last updated in". The default value is `Last updated in`.')
class-attribute
instance-attribute
¶
model_config = pydantic.ConfigDict(extra='forbid', validate_default=True)
class-attribute
instance-attribute
¶
month = pydantic.Field(default='month', description='Translation of "month" (singular). The default value is `month`.')
class-attribute
instance-attribute
¶
month_abbreviations = pydantic.Field(default=['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec'], description='Month abbreviations (Jan-Dec).')
class-attribute
instance-attribute
¶
month_names = pydantic.Field(default=['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], description='Full month names (January-December).')
class-attribute
instance-attribute
¶
months = pydantic.Field(default='months', description='Translation of "months" (plural). The default value is `months`.')
class-attribute
instance-attribute
¶
phrases = pydantic.Field(default_factory=Phrases, description='Locale-specific phrases used in entry templates as placeholders.')
class-attribute
instance-attribute
¶
present = pydantic.Field(default='present', description='Translation of "present" for ongoing dates. The default value is `present`.')
class-attribute
instance-attribute
¶
year = pydantic.Field(default='year', description='Translation of "year" (singular). The default value is `year`.')
class-attribute
instance-attribute
¶
years = pydantic.Field(default='years', description='Translation of "years" (plural). The default value is `years`.')
class-attribute
instance-attribute
¶
Phrases
¶
Bases: BaseModelWithoutExtraKeys