~ruther/NosSmooth

ref: db866ead1331b95623121520b29ca5d2d640e1e8 NosSmooth/Data/NosSmooth.Data.Abstractions/Language/LanguageKey.cs -rw-r--r-- 882 bytes
db866ead — František Boháček feat(data): add skeleton for NosTale data 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
//  LanguageKey.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace NosSmooth.Data.Abstractions.Language;

/// <summary>
/// Key for language translation.
/// </summary>
public struct LanguageKey
{
    /// <summary>
    /// Initializes a new instance of the <see cref="LanguageKey"/> struct.
    /// </summary>
    /// <param name="key">The key num.</param>
    public LanguageKey(long key)
        : this($"zts{key}e")
    {
    }

    /// <summary>
    /// Initializes a new instance of the <see cref="LanguageKey"/> struct.
    /// </summary>
    /// <param name="key">The key.</param>
    public LanguageKey(string key)
    {
        Key = key;
    }

    /// <summary>
    /// Gets the key.
    /// </summary>
    public string Key { get; }
}
Do not follow this link