This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Microsoft.Extensions.Logging; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Text; | |
| namespace MSHOSTEXAMPLE | |
| { | |
| internal static class LoggerExtensions | |
| { | |
| internal static void Trace(this ILogger logger, string message, params object[] args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Windows.Input; | |
| namespace WPFEXAMPLE | |
| { | |
| /// <summary> | |
| /// A command class that can be executed, typically used in MVVM patterns to bind actions to UI elements. | |
| /// </summary> | |
| public class RelayCommand : ICommand | |
| { | |
| private readonly Action<object?> execute; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.ComponentModel; | |
| using System.Runtime.CompilerServices; | |
| namespace WPFEXAMPLE | |
| { | |
| /// <summary> | |
| /// Base class of the WPF ViewModel (Data Context) | |
| /// </summary> | |
| public abstract class DataContextBase : INotifyPropertyChanged | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { defineConfig } from '@lingui/conf'; | |
| export default defineConfig({ | |
| sourceLocale: 'en', // Original locale of the contents | |
| locales: ['ko', 'en', 'fr', 'ja'], // Officially supported locales of the contents | |
| catalogs: [ | |
| { // Default map to extract *.po files from entire components | |
| path: '<rootDir>/src/locales/{locale}', | |
| include: ['<rootDir>/src'], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export type Alpha2LanguageCode | |
| = 'aa' | 'ab' | 'ae' | 'af' | 'ak' | 'am' | 'an' | 'ar' | 'as' | 'av' | |
| | 'ay' | 'az' | 'ba' | 'be' | 'bg' | 'bh' | 'bi' | 'bm' | 'bn' | 'bo' | |
| | 'br' | 'bs' | 'ca' | 'ce' | 'ch' | 'co' | 'cr' | 'cs' | 'cu' | 'cv' | |
| | 'cy' | 'da' | 'de' | 'dv' | 'dz' | 'ee' | 'el' | 'en' | 'eo' | 'es' | |
| | 'et' | 'eu' | 'fa' | 'ff' | 'fi' | 'fj' | 'fo' | 'fr' | 'fy' | 'ga' | |
| | 'gd' | 'gl' | 'gn' | 'gu' | 'gv' | 'ha' | 'he' | 'hi' | 'ho' | 'hr' | |
| | 'ht' | 'hu' | 'hy' | 'hz' | 'ia' | 'id' | 'ie' | 'ig' | 'ii' | 'ik' | |
| | 'io' | 'is' | 'it' | 'iu' | 'ja' | 'jv' | 'ka' | 'kg' | 'ki' | 'kj' | |
| | 'kk' | 'kl' | 'km' | 'kn' | 'ko' | 'kr' | 'ks' | 'ku' | 'kv' | 'kw' |