< Summary

Information
Class: TeleFlow.Telegram.I18n.Fluent.TelegramFluentI18nOptions
Assembly: TeleFlow.Framework.I18n.Fluent
File(s): /_/src/TeleFlow.Framework.I18n.Fluent/TelegramFluentI18nOptions.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 18
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor()100%11100%

File(s)

/_/src/TeleFlow.Framework.I18n.Fluent/TelegramFluentI18nOptions.cs

#LineLine coverage
 1namespace TeleFlow.Telegram.I18n.Fluent;
 2
 3/// <summary>
 4/// Configures the startup-loaded Fluent catalog used by Telegram handlers and explicit-locale background formatting.
 5/// </summary>
 6public sealed class TelegramFluentI18nOptions
 7{
 8    /// <summary>
 9    /// Gets or sets the resource root. Relative paths resolve from <see cref="AppContext.BaseDirectory"/>.
 10    /// </summary>
 11    public string ResourcesPath { get; set; } = "Locales";
 12
 13    /// <summary>
 14    /// Gets or sets the final locale used when exact and parent catalogs are unavailable.
 15    /// Its catalog must exist at startup.
 16    /// </summary>
 2417    public Locale FallbackLocale { get; set; } = new("en");
 18}

Methods/Properties

.ctor()