@grafana/create-plugin 6.2.0-canary.2233.18946416008.0 → 6.2.0-canary.2233.18946524692.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -39
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -122,45 +122,6 @@ For more information see our [documentation](https://grafana.com/developers/plug
|
|
|
122
122
|
|
|
123
123
|
---
|
|
124
124
|
|
|
125
|
-
## Add optional features to your existing plugin
|
|
126
|
-
|
|
127
|
-
You can add optional features to your plugin using the `add` command. This allows you to enhance your plugin with additional capabilities without starting from scratch.
|
|
128
|
-
|
|
129
|
-
### Add internationalization (i18n) support
|
|
130
|
-
|
|
131
|
-
Add translation support to make your plugin available in multiple languages:
|
|
132
|
-
|
|
133
|
-
```bash
|
|
134
|
-
# Run this command from the root of your plugin
|
|
135
|
-
cd ./my-plugin
|
|
136
|
-
|
|
137
|
-
npx @grafana/create-plugin@latest add i18n
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
This will:
|
|
141
|
-
|
|
142
|
-
- Update your `plugin.json` with the selected languages
|
|
143
|
-
- Create locale folders and translation files
|
|
144
|
-
- Add the necessary dependencies to `package.json`
|
|
145
|
-
- Configure your docker-compose.yaml with the required feature toggle
|
|
146
|
-
- Add i18n imports to your module file
|
|
147
|
-
- Set up the i18n extraction script
|
|
148
|
-
|
|
149
|
-
The command will prompt you to select which locales you want to support. You can choose from common locales like:
|
|
150
|
-
|
|
151
|
-
- English (US) - `en-US`
|
|
152
|
-
- Spanish (Spain) - `es-ES`
|
|
153
|
-
- French (France) - `fr-FR`
|
|
154
|
-
- German (Germany) - `de-DE`
|
|
155
|
-
- Swedish (Sweden) - `sv-SE`
|
|
156
|
-
- And more...
|
|
157
|
-
|
|
158
|
-
You can also add custom locale codes during the interactive prompt.
|
|
159
|
-
|
|
160
|
-
For more information about plugin internationalization, see our [documentation](https://grafana.com/developers/plugin-tools/how-to-guides/plugin-internationalization).
|
|
161
|
-
|
|
162
|
-
---
|
|
163
|
-
|
|
164
125
|
## Contributing
|
|
165
126
|
|
|
166
127
|
We are always grateful for contributions! See [CONTRIBUTING.md](../../CONTRIBUTING.md) for more information.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/create-plugin",
|
|
3
|
-
"version": "6.2.0-canary.2233.
|
|
3
|
+
"version": "6.2.0-canary.2233.18946524692.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"directory": "packages/create-plugin",
|
|
6
6
|
"url": "https://github.com/grafana/plugin-tools"
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"engines": {
|
|
62
62
|
"node": ">=20"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "66533b5a682753ffda37f33a185e8fa2fe2c8383"
|
|
65
65
|
}
|