Skills Plugins MCP Prompt Model 博客 我的中心

maui-localization

Guidance for localizing .NET MAUI apps: multi-language support via .resx resource files, culture resolution and runtime switching, RTL layout, platform language declarations (iOS/Mac Catalyst Info.plist, Windows Package.appxmanifest), and image localization strategies. USE FOR: "localization", "multi-language", "resx resource", "translate app", "RTL layout", "culture switching", "localize strings", "right-to-left", "language support MAUI", "Info.plist languages". DO NOT USE FOR: theming or visual styles (use maui-theming), accessibility labels (use maui-accessibility), or content from REST APIs (use maui-rest-api).

DeepseekModel キュレーション済みスキル 品質 優秀 · 78 v1.0.0

取得

https://deepseekmodel.com/api/download.php?id=davidortinau-maui-skills-plugins-maui-skills-skills-maui-localization-skill-md&format=skill
ダウンロード .skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能
.skill ファイルの system_prompt フィールドの実際の内容。
name maui-localization description Guidance for localizing .NET MAUI apps: multi-language support via .resx resource files, culture resolution and runtime switching, RTL layout, platform language declarations (iOS/Mac Catalyst Info.plist, Windows Package.appxmanifest), and image localization strategies. USE FOR: "localization", "multi-language", "resx resource", "translate app", "RTL layout", "culture switching", "localize strings", "right-to-left", "language support MAUI", "Info.plist languages". DO NOT USE FOR: theming or visual styles (use maui-theming), accessibility labels (use maui-accessibility), or content from REST APIs (use maui-rest-api). .NET MAUI Localization Common gotchas Issue Fix ResourceManager returns null for default culture Set <NeutralLanguage>en-US</NeutralLanguage> in .csproj iOS ignores culture overrides CFBundleLocalizations missing from Info.plist Windows doesn't show correct language <Resource Language="..." /> missing from Package.appxmanifest x:Static bindings don't update on language switch x:Static is one-time — use binding approach with INotifyPropertyChanged .Designer.cs not regenerating in VS Code Add <CoreCompileDependsOn>PrepareResources;$(CoreCompileDependsOn)</CoreCompileDependsOn> and run dotnet build ⚠️ NeutralLanguage is mandatory <!-- ✅ Always set in .csproj --> < PropertyGroup > < NeutralLanguage > en-US </ NeutralLanguage > </ PropertyGroup > <!-- ❌ Missing this causes ResourceManager to return null at runtime --> Platform declarations — don't forget these iOS / Mac Catalyst ⚠️ Without this, iOS won't offer your app's languages in system Settings: <!-- Platforms/iOS/Info.plist AND Platforms/MacCatalyst/Info.plist --> < key > CFBundleLocalizations </ key > < array > < string > en </ string > < string > es </ string > < string > fr </ string > </ array > Windows <!-- Platforms/Windows/Package.appxmanifest --> < Resources > < Resource Language = "en-US" /> < Resource Language = "es" /> < Resource Language = "fr-FR" /> </ Resources > Android Android picks up .resx -based localization automatically. No additional manifest entries required. ✅ Runtime language switching — x:Static trap <!-- ❌ Won't update when language changes at runtime --> < Label Text = "{x:Static resx:AppResources.WelcomeMessage}" /> <!-- ✅ Updates dynamically via INotifyPropertyChanged --> < Label Text = "{Binding [WelcomeMessage], Source={x:Static local:LocalizationResourceManager.Instance}}" /> When switching culture, set all three properties or formatting is inconsistent: // ✅ Complete culture switch var culture = new CultureInfo( "es" ); CultureInfo.CurrentUICulture = culture; // resource lookup CultureInfo.CurrentCulture = culture; // dates/numbers AppResources.Culture = culture; // ResourceManager // ❌ Only sets UI culture — dates/numbers stay in old culture CultureInfo.CurrentUICulture = new CultureInfo( "es" ); RTL layout — set FlowDirection at page level <!-- ✅ Page-level — children inherit --> < ContentPage FlowDirection = "RightToLeft" > < StackLayout FlowDirection = "MatchParent" /> </ ContentPage > <!-- ❌ Only on child — parent still LTR, layout breaks --> < ContentPage > < StackLayout FlowDirection = "RightToLeft" /> </ ContentPage > VS Code pitfall ⚠️ .Designer.cs may not regenerate on save. Add to .csproj and run dotnet build after .resx changes: < CoreCompileDependsOn > PrepareResources;$(CoreCompileDependsOn) </ CoreCompileDependsOn > Decision framework Need Approach Static multilingual strings .resx files with x:Static bindings Runtime language switching LocalizationResourceManager with INotifyPropertyChanged bindings Culture-specific images Name images banner_{culture}.png or store paths in .resx RTL support Set FlowDirection at page level, detect with TextInfo.IsRightToLeft Date/number formatting Set CultureInfo.CurrentCulture alongside CurrentUICulture Quick checklist NeutralLanguage set in .csproj Default AppResources.resx contains all keys Each target language has its own AppResources.{culture}.resx iOS/Mac: CFBundleLocalizations lists all supported languages Windows: Package.appxmanifest declares <Resource Language="..." /> RTL cultures set FlowDirection at page/app level Runtime switching sets all three: CurrentUICulture , CurrentCulture , AppResources.Culture dotnet build regenerates .Designer.cs after .resx changes
このスキルを起動するキーワード。クリックでコピーできます。

このスキルにはトリガーワードがありません。

ダウンロードした .skill に含まれるフィールド。
フィールド 説明
formatフォーマット識別子(skill/v1)
skill_idスキル固有 ID
nameスキル名
versionバージョン
description説明
categoryカテゴリ(配列)
trigger_wordsトリガーワード
tagsタグ
sourceソース
source_urlソース URL(本ページ)
exported_atエクスポート日時(ダウンロード毎)
system_promptシステムプロンプト本文
model_configモデル設定:provider / model / temperature / max_tokens / top_p
examplesサンプル
install_guide各プラットフォームの導入説明(Coze / Dify / Claude / カスタム)
同じスキルを各プラットフォーム形式で出力できます。
.skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能 ダウンロード
.skillpro 拡張形式。scripts / tools / dependencies / hooks を含む ダウンロード
.json 純粋な JSON 出力。system_prompt とモデル設定のみ ダウンロード
Coze frontmatter 付き Markdown。Coze へのインポート用 ダウンロード
Dify Dify DSL。アプリ作成後にそのままインポート ダウンロード

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

验证码 --

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。