Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions src/api/i18n/content-types/i18n/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"kind": "collectionType",
"collectionName": "i18ns",
"info": {
"singularName": "i18n",
"pluralName": "i18ns",
"displayName": "i18n"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"key": {
"type": "string",
"unique": true,
"required": true
},
"en": {
"type": "component",
"repeatable": false,
"component": "i18n.i18n"
},
"vi": {
"type": "component",
"repeatable": false,
"component": "i18n.i18n"
},
"zh": {
"type": "component",
"repeatable": false,
"component": "i18n.i18n"
},
"ja": {
"type": "component",
"repeatable": false,
"component": "i18n.i18n"
},
"ru": {
"type": "component",
"repeatable": false,
"component": "i18n.i18n"
}
}
}
7 changes: 7 additions & 0 deletions src/api/i18n/controllers/i18n.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* i18n controller
*/

import { factories } from '@strapi/strapi'

export default factories.createCoreController('api::i18n.i18n');
7 changes: 7 additions & 0 deletions src/api/i18n/routes/i18n.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* i18n router
*/

import { factories } from '@strapi/strapi';

export default factories.createCoreRouter('api::i18n.i18n');
7 changes: 7 additions & 0 deletions src/api/i18n/services/i18n.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* i18n service
*/

import { factories } from '@strapi/strapi';

export default factories.createCoreService('api::i18n.i18n');
19 changes: 19 additions & 0 deletions src/components/i18n/i18n.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"collectionName": "components_platform_i18ns",
"info": {
"displayName": "platform",
"description": ""
},
"options": {},
"attributes": {
"web": {
"type": "string"
},
"mobi": {
"type": "string"
},
"extension": {
"type": "string"
}
}
}