[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75Q5F5KCSGKEKC6C2KFVP43":3,"skill-same:01M75Q5F5KCSGKEKC6C2KFVP43":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M75Q5F5KCSGKEKC6C2KFVP43","flutter-setup-localization",null,"Add `flutter_localizations` and `intl` dependencies, enable \"generate true\" in `pubspec.yaml`, and create an `l10n.yaml` configuration file. Use when initializing localization support for a new Flutter project.","mictlanix\u002Fmbe-ui","mictlanix","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F703184?v=4","01M75Q1XD9477GXRKPM6JVVC11","Mictlanix","01M75Q1XDXKYX3VS9T3CS2XEFR",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fflutter-setup-localization\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: flutter-setup-localization\ndescription: Add `flutter_localizations` and `intl` dependencies, enable \"generate true\" in `pubspec.yaml`, and create an `l10n.yaml` configuration file. Use when initializing localization support for a new Flutter project.\nmetadata:\n  model: models\u002Fgemini-3.1-pro-preview\n  last_modified: Tue, 21 Apr 2026 21:27:35 GMT\n---\n# Internationalizing Flutter Applications\n\n## Contents\n- [Core Concepts](#core-concepts)\n- [Setup Workflow](#setup-workflow)\n- [Implementation Workflow](#implementation-workflow)\n- [Advanced Formatting](#advanced-formatting)\n- [Examples](#examples)\n\n## Core Concepts\nFlutter handles internationalization (i18n) and localization (l10n) via the `flutter_localizations` and `intl` packages. The standard approach uses App Resource Bundle (`.arb`) files to define localized strings, which are then compiled into a generated `AppLocalizations` class for type-safe access within the widget tree.\n\n## Setup Workflow\n\nCopy and track this checklist when initializing internationalization in a Flutter project:\n\n- [ ] **Task Progress**\n  - [ ] 1. Add dependencies to `pubspec.yaml`.\n  - [ ] 2. Enable the `generate` flag.\n  - [ ] 3. Create the `l10n.yaml` configuration file.\n  - [ ] 4. Configure `MaterialApp` or `CupertinoApp`.\n\n### 1. Add Dependencies\nAdd the required localization packages to the project. Execute the following commands in the terminal:\n```bash\nflutter pub add flutter_localizations --sdk=flutter\nflutter pub add intl:any\n```\n\nVerify your `pubspec.yaml` includes the following under `dependencies`:\n```yaml\ndependencies:\n  flutter:\n    sdk: flutter\n  flutter_localizations:\n    sdk: flutter\n  intl: any\n```\n\n### 2. Enable Code Generation\nOpen `pubspec.yaml` and enable the `generate` flag within the `flutter` section to automate localization tasks:\n```yaml\nflutter:\n  generate: true\n```\n\n### 3. Create Configuration File\nCreate a new file named `l10n.yaml` in the root directory of the Flutter project. Define the input directory, template file, and output file:\n```yaml\narb-dir: lib\u002Fl10n\ntemplate-arb-file: app_en.arb\noutput-localization-file: app_localizations.dart\nsynthetic-package: true\n```\n\n### 4. Configure the App Entry Point\nImport the generated localizations and the `flutter_localizations` library in your `main.dart`. Inject the delegates and supported locales into your `MaterialApp` or `CupertinoApp`.\n\n```dart\nimport 'package:flutter_localizations\u002Fflutter_localizations.dart';\nimport 'package:flutter_gen\u002Fgen_l10n\u002Fapp_localizations.dart'; \u002F\u002F Adjust path if synthetic-package is false\n\n\u002F\u002F ... inside build method\nreturn MaterialApp(\n  localizationsDelegates: const [\n    AppLocalizations.delegate,\n    GlobalMaterialLocalizations.delegate,\n    GlobalWidgetsLocalizations.delegate,\n    GlobalCupertinoLocalizations.delegate,\n  ],\n  supportedLocales: const [\n    Locale('en'), \u002F\u002F English\n    Locale('es'), \u002F\u002F Spanish\n  ],\n  home: const MyHomePage(),\n);\n```\n\n## Implementation Workflow\n\nFollow this workflow when adding or modifying localized content.\n\n### 1. Define ARB Files\n*   **If creating NEW content:** Add the base string to the template file (`lib\u002Fl10n\u002Fapp_en.arb`). Include a description for context.\n*   **If EDITING existing content:** Locate the key in all supported `.arb` files and update the values.\n\n```json\n{\n  \"helloWorld\": \"Hello World!\",\n  \"@helloWorld\": {\n    \"description\": \"The conventional newborn programmer greeting\"\n  }\n}\n```\n\nCreate corresponding files for other locales (e.g., `app_es.arb`):\n```json\n{\n  \"helloWorld\": \"¡Hola Mundo!\"\n}\n```\n\n### 2. Generate Localization Classes\nRun the following command to trigger code generation:\n```bash\nflutter pub get\n```\n*Feedback Loop:* Run validator -> review terminal output for ARB syntax errors -> fix missing commas or mismatched placeholders -> re-run `flutter pub get`.\n\n### 3. Consume Localized Strings\nAccess the localized strings in your widget tree using `AppLocalizations.of(context)`. Ensure the widget calling this is a descendant of `MaterialApp`.\n\n```dart\nText(AppLocalizations.of(context)!.helloWorld)\n```\n\n## Advanced Formatting\n\nUse placeholders for dynamic data, plurals, and conditional selects.\n\n### Placeholders\nDefine parameters within curly braces and specify their type in the metadata object.\n```json\n\"hello\": \"Hello {userName}\",\n\"@hello\": {\n  \"description\": \"A message with a single parameter\",\n  \"placeholders\": {\n    \"userName\": {\n      \"type\": \"String\",\n      \"example\": \"Bob\"\n    }\n  }\n}\n```\n\n### Plurals\nUse the `plural` syntax to handle quantity-based string variations. The `other` case is mandatory.\n```json\n\"nWombats\": \"{count, plural, =0{no wombats} =1{1 wombat} other{{count} wombats}}\",\n\"@nWombats\": {\n  \"description\": \"A plural message\",\n  \"placeholders\": {\n    \"count\": {\n      \"type\": \"num\",\n      \"format\": \"compact\"\n    }\n  }\n}\n```\n\n### Selects\nUse the `select` syntax for conditional strings, such as gendered text.\n```json\n\"pronoun\": \"{gender, select, male{he} female{she} other{they}}\",\n\"@pronoun\": {\n  \"description\": \"A gendered message\",\n  \"placeholders\": {\n    \"gender\": {\n      \"type\": \"String\"\n    }\n  }\n}\n```\n\n## Examples\n\n### Complete `l10n.yaml`\n```yaml\narb-dir: lib\u002Fl10n\ntemplate-arb-file: app_en.arb\noutput-localization-file: app_localizations.dart\nsynthetic-package: true\nuse-escaping: true\n```\n\n### Complete Widget Implementation\n```dart\nimport 'package:flutter\u002Fmaterial.dart';\nimport 'package:flutter_gen\u002Fgen_l10n\u002Fapp_localizations.dart';\n\nclass GreetingWidget extends StatelessWidget {\n  final String userName;\n  final int notificationCount;\n\n  const GreetingWidget({\n    super.key, \n    required this.userName, \n    required this.notificationCount,\n  });\n\n  @override\n  Widget build(BuildContext context) {\n    final l10n = AppLocalizations.of(context)!;\n\n    return Column(\n      children: [\n        Text(l10n.hello(userName)),\n        Text(l10n.nWombats(notificationCount)),\n      ],\n    );\n  }\n}\n```\n","# Internationalizing Flutter Applications\n\n## Contents\n- [Core Concepts](#core-concepts)\n- [Setup Workflow](#setup-workflow)\n- [Implementation Workflow](#implementation-workflow)\n- [Advanced Formatting](#advanced-formatting)\n- [Examples](#examples)\n\n## Core Concepts\nFlutter handles internationalization (i18n) and localization (l10n) via the `flutter_localizations` and `intl` packages. The standard approach uses App Resource Bundle (`.arb`) files to define localized strings, which are then compiled into a generated `AppLocalizations` class for type-safe access within the widget tree.\n\n## Setup Workflow\n\nCopy and track this checklist when initializing internationalization in a Flutter project:\n\n- [ ] **Task Progress**\n  - [ ] 1. Add dependencies to `pubspec.yaml`.\n  - [ ] 2. Enable the `generate` flag.\n  - [ ] 3. Create the `l10n.yaml` configuration file.\n  - [ ] 4. Configure `MaterialApp` or `CupertinoApp`.\n\n### 1. Add Dependencies\nAdd the required localization packages to the project. Execute the following commands in the terminal:\n```bash\nflutter pub add flutter_localizations --sdk=flutter\nflutter pub add intl:any\n```\n\nVerify your `pubspec.yaml` includes the following under `dependencies`:\n```yaml\ndependencies:\n  flutter:\n    sdk: flutter\n  flutter_localizations:\n    sdk: flutter\n  intl: any\n```\n\n### 2. Enable Code Generation\nOpen `pubspec.yaml` and enable the `generate` flag within the `flutter` section to automate localization tasks:\n```yaml\nflutter:\n  generate: true\n```\n\n### 3. Create Configuration File\nCreate a new file named `l10n.yaml` in the root directory of the Flutter project. Define the input directory, template file, and output file:\n```yaml\narb-dir: lib\u002Fl10n\ntemplate-arb-file: app_en.arb\noutput-localization-file: app_localizations.dart\nsynthetic-package: true\n```\n\n### 4. Configure the App Entry Point\nImport the generated localizations and the `flutter_localizations` library in your `main.dart`. Inject the delegates and supported locales into your `MaterialApp` or `CupertinoApp`.\n\n```dart\nimport 'package:flutter_localizations\u002Fflutter_localizations.dart';\nimport 'package:flutter_gen\u002Fgen_l10n\u002Fapp_localizations.dart'; \u002F\u002F Adjust path if synthetic-package is false\n\n\u002F\u002F ... inside build method\nreturn MaterialApp(\n  localizationsDelegates: const [\n    AppLocalizations.delegate,\n    GlobalMaterialLocalizations.delegate,\n    GlobalWidgetsLocalizations.delegate,\n    GlobalCupertinoLocalizations.delegate,\n  ],\n  supportedLocales: const [\n    Locale('en'), \u002F\u002F English\n    Locale('es'), \u002F\u002F Spanish\n  ],\n  home: const MyHomePage(),\n);\n```\n\n## Implementation Workflow\n\nFollow this workflow when adding or modifying localized content.\n\n### 1. Define ARB Files\n*   **If creating NEW content:** Add the base string to the template file (`lib\u002Fl10n\u002Fapp_en.arb`). Include a description for context.\n*   **If EDITING existing content:** Locate the key in all supported `.arb` files and update the values.\n\n```json\n{\n  \"helloWorld\": \"Hello World!\",\n  \"@helloWorld\": {\n    \"description\": \"The conventional newborn programmer greeting\"\n  }\n}\n```\n\nCreate corresponding files for other locales (e.g., `app_es.arb`):\n```json\n{\n  \"helloWorld\": \"¡Hola Mundo!\"\n}\n```\n\n### 2. Generate Localization Classes\nRun the following command to trigger code generation:\n```bash\nflutter pub get\n```\n*Feedback Loop:* Run validator -> review terminal output for ARB syntax errors -> fix missing commas or mismatched placeholders -> re-run `flutter pub get`.\n\n### 3. Consume Localized Strings\nAccess the localized strings in your widget tree using `AppLocalizations.of(context)`. Ensure the widget calling this is a descendant of `MaterialApp`.\n\n```dart\nText(AppLocalizations.of(context)!.helloWorld)\n```\n\n## Advanced Formatting\n\nUse placeholders for dynamic data, plurals, and conditional selects.\n\n### Placeholders\nDefine parameters within curly braces and specify their type in the metadata object.\n```json\n\"hello\": \"Hello {userName}\",\n\"@hello\": {\n  \"description\": \"A message with a single parameter\",\n  \"placeholders\": {\n    \"userName\": {\n      \"type\": \"String\",\n      \"example\": \"Bob\"\n    }\n  }\n}\n```\n\n### Plurals\nUse the `plural` syntax to handle quantity-based string variations. The `other` case is mandatory.\n```json\n\"nWombats\": \"{count, plural, =0{no wombats} =1{1 wombat} other{{count} wombats}}\",\n\"@nWombats\": {\n  \"description\": \"A plural message\",\n  \"placeholders\": {\n    \"count\": {\n      \"type\": \"num\",\n      \"format\": \"compact\"\n    }\n  }\n}\n```\n\n### Selects\nUse the `select` syntax for conditional strings, such as gendered text.\n```json\n\"pronoun\": \"{gender, select, male{he} female{she} other{they}}\",\n\"@pronoun\": {\n  \"description\": \"A gendered message\",\n  \"placeholders\": {\n    \"gender\": {\n      \"type\": \"String\"\n    }\n  }\n}\n```\n\n## Examples\n\n### Complete `l10n.yaml`\n```yaml\narb-dir: lib\u002Fl10n\ntemplate-arb-file: app_en.arb\noutput-localization-file: app_localizations.dart\nsynthetic-package: true\nuse-escaping: true\n```\n\n### Complete Widget Implementation\n```dart\nimport 'package:flutter\u002Fmaterial.dart';\nimport 'package:flutter_gen\u002Fgen_l10n\u002Fapp_localizations.dart';\n\nclass GreetingWidget extends StatelessWidget {\n  final String userName;\n  final int notificationCount;\n\n  const GreetingWidget({\n    super.key, \n    required this.userName, \n    required this.notificationCount,\n  });\n\n  @override\n  Widget build(BuildContext context) {\n    final l10n = AppLocalizations.of(context)!;\n\n    return Column(\n      children: [\n        Text(l10n.hello(userName)),\n        Text(l10n.nWombats(notificationCount)),\n      ],\n    );\n  }\n}\n```\n",{"name":5,"metadata":24,"description":7},{"model":25,"last_modified":26},"models\u002Fgemini-3.1-pro-preview","Tue, 21 Apr 2026 21:27:35 GMT","main","228e23386ed058f8a2456399cd68f63999d63adf",".claude\u002Fskills\u002Fflutter-setup-localization","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui","https:\u002F\u002Fgithub.com\u002Fmictlanix","https:\u002F\u002Fmictlanix.com","2026-11-15 04:02:27",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add mictlanix\u002Fmbe-ui --skill flutter-setup-localization",{"tool":40,"command":41},"bunx","bunx skills add mictlanix\u002Fmbe-ui --skill flutter-setup-localization",{"tool":43,"command":44},"pnpm","pnpm dlx skills add mictlanix\u002Fmbe-ui --skill flutter-setup-localization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fflutter-setup-localization\u002FSKILL.md",true,[],[49,56,61,68,75,82],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M75QCZHHB42Q7KJTZHQZXZ77","speckit-wireframes-draft","Draw low-fi wireframes for every screen and state the spec describes","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.specify\u002Fextensions\u002Fwireframes\u002F.specify-dev\u002Fagent-commands\u002Fclaude\u002Fspeckit-wireframes-draft\u002FSKILL.md",[],[],{"skillNo":57,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M75QCXRSD7HM7AFZH4HA9E6S","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fspeckit-wireframes-draft\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M75QCVS17DXXBTQ8DE2SSXVR","speckit-taskstoissues","Convert existing tasks into actionable, dependency-ordered GitHub issues for the feature based on available design artifacts.","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fspeckit-taskstoissues\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M75QCS3M02XD4PW58EXS6458","speckit-tasks","Generate an actionable, dependency-ordered tasks.md for the feature based on available design artifacts.","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fspeckit-tasks\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M75QCP9NASXGDNYZF6XYJZBD","speckit-specify","Create or update the feature specification from a natural language feature description.","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fspeckit-specify\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M75QCKBPS4K60R4YPRQ8HBJ9","speckit-plan","Execute the implementation planning workflow using the plan template to generate design artifacts.","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fspeckit-plan\u002FSKILL.md",[],[]]