| | | 1 | | // ----------------------------------------------------------------------- |
| | | 2 | | // <copyright file="TranslationOptionsPresets.cs" company="Stéphane ANDRE"> |
| | | 3 | | // Copyright (c) Stéphane ANDRE. All rights reserved. |
| | | 4 | | // </copyright> |
| | | 5 | | // ----------------------------------------------------------------------- |
| | | 6 | | |
| | | 7 | | namespace MyNet.Globalization.Localization.Translation; |
| | | 8 | | |
| | | 9 | | /// <summary> |
| | | 10 | | /// Provides predefined presets of <see cref="TranslationOptions"/> for common translation scenarios, such as default, a |
| | | 11 | | /// </summary> |
| | | 12 | | public static class TranslationOptionsPresets |
| | | 13 | | { |
| | | 14 | | /// <summary> |
| | | 15 | | /// Gets the default translation options, which typically use the full display style for translations. |
| | | 16 | | /// </summary> |
| | 12 | 17 | | public static TranslationOptions Default { get; } = new TranslationOptionsBuilder().Build(); |
| | | 18 | | |
| | | 19 | | /// <summary> |
| | | 20 | | /// Gets the abbreviated translation options, which typically use a shortened display style for translations. |
| | | 21 | | /// </summary> |
| | 12 | 22 | | public static TranslationOptions Abbreviated { get; } = new TranslationOptionsBuilder() |
| | 12 | 23 | | .WithStyle(DisplayStyle.Abbreviation) |
| | 12 | 24 | | .Build(); |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// Gets the symbol translation options, which typically use a symbolic display style for translations. |
| | | 28 | | /// </summary> |
| | 12 | 29 | | public static TranslationOptions Symbol { get; } = new TranslationOptionsBuilder() |
| | 12 | 30 | | .WithStyle(DisplayStyle.Symbol) |
| | 12 | 31 | | .Build(); |
| | | 32 | | } |
| | | 33 | | |