@localazy/strapi-plugin 0.1.0 → 0.1.3
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/.github/workflows/.build.yml +1 -5
- package/README.md +6 -1
- package/admin/src/index.js +2 -1
- package/package.json +12 -1
|
@@ -26,14 +26,10 @@ jobs:
|
|
|
26
26
|
${{ runner.os }}-
|
|
27
27
|
- name: Install dependencies
|
|
28
28
|
run: npm ci
|
|
29
|
-
- name: Run linter
|
|
30
|
-
run: npm run lint
|
|
31
29
|
- name: Run unit tests
|
|
32
30
|
run: npm run test
|
|
33
|
-
- name: Build project
|
|
34
|
-
run: npm run build
|
|
35
31
|
- name: Publish to npm
|
|
36
32
|
uses: JS-DevTools/npm-publish@v1
|
|
37
|
-
if: github.ref == 'refs/heads/
|
|
33
|
+
if: github.ref == 'refs/heads/main'
|
|
38
34
|
with:
|
|
39
35
|
token: ${{ secrets.NPM_AUTH_TOKEN }}
|
package/README.md
CHANGED
|
@@ -8,6 +8,11 @@ Manage your multilingual content with ease. Upload your content in default langu
|
|
|
8
8
|
|
|
9
9
|
This repository contains all the code needed to run the Official Strapi Plugin by Localazy.
|
|
10
10
|
|
|
11
|
+
### Install plugin via NPM
|
|
12
|
+
|
|
13
|
+
The plugin is available on [NPM](https://www.npmjs.com/package/@localazy/strapi-plugin).
|
|
14
|
+
You can also follow the installation commands located in your Strapi project Marketplace. This is the recommended approach.
|
|
15
|
+
|
|
11
16
|
### Use plugin in a clean project locally
|
|
12
17
|
|
|
13
18
|
Besides installing the plugin via `npm`, you can also use it in a project locally. Assuming you have a (clean) Strapi project set up, do:
|
|
@@ -23,7 +28,7 @@ module.exports = {
|
|
|
23
28
|
enabled: true,
|
|
24
29
|
resolve: "./src/plugins/localazy",
|
|
25
30
|
config: {
|
|
26
|
-
default: () =>
|
|
31
|
+
default: () => {},
|
|
27
32
|
validator: () => {},
|
|
28
33
|
},
|
|
29
34
|
},
|
package/admin/src/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import Initializer from "./components/Initializer";
|
|
|
5
5
|
import PluginIcon from "./components/PluginIcon";
|
|
6
6
|
|
|
7
7
|
const name = pluginPkg.strapi.name;
|
|
8
|
+
const upperCaseName = name.charAt(0).toUpperCase() + name.slice(1);
|
|
8
9
|
const SETTINGS_SETUP = [
|
|
9
10
|
{
|
|
10
11
|
sectionId: `${pluginId}-settings`,
|
|
@@ -36,7 +37,7 @@ export default {
|
|
|
36
37
|
icon: PluginIcon,
|
|
37
38
|
intlLabel: {
|
|
38
39
|
id: `${pluginId}.plugin.name`,
|
|
39
|
-
defaultMessage:
|
|
40
|
+
defaultMessage: upperCaseName,
|
|
40
41
|
},
|
|
41
42
|
Component: async () => {
|
|
42
43
|
const component = await import("./pages/Index");
|
package/package.json
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@localazy/strapi-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "The official Strapi Plugin by Localazy.",
|
|
5
5
|
"strapi": {
|
|
6
6
|
"name": "localazy",
|
|
7
7
|
"description": "The official Strapi Plugin by Localazy",
|
|
8
8
|
"kind": "plugin"
|
|
9
9
|
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"strapi",
|
|
12
|
+
"plugin",
|
|
13
|
+
"localazy",
|
|
14
|
+
"javascript",
|
|
15
|
+
"internationalization",
|
|
16
|
+
"i18n",
|
|
17
|
+
"headless",
|
|
18
|
+
"cms",
|
|
19
|
+
"l10n"
|
|
20
|
+
],
|
|
10
21
|
"repository": {
|
|
11
22
|
"type": "git",
|
|
12
23
|
"url": "git@github.com:localazy/strapi-plugin.git"
|