Skip to content

Commit

Permalink
build: fix locales
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed May 17, 2024
1 parent c45311a commit 02248b6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
4 changes: 0 additions & 4 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"appName": {
"message": "MyParcel",
"description": "The name of the extension, displayed in the web store."
},
"appDescription": {
"message": "Create MyParcel labels from any website. Retrieve all the information you need to create a shipping label in one click.",
"description": "The description of the extension, displayed in the web store."
Expand Down
3 changes: 0 additions & 3 deletions _locales/nl/messages.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"appName": {
"message": "MyParcel"
},
"appDescription": {
"message": "Maak MyParcel labels vanaf iedere website. Haal in één klik alle benodigde data op om een verzendlabel aan te maken."
}
Expand Down
2 changes: 0 additions & 2 deletions private/vite/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ export const manifest = defineManifest((env) => {
const label = isProd ? 0 : commitsSinceLastTag;

const manifest = {
name: '__MSG_appName__',
short_name: '__MSG_appName__',
description: '__MSG_appDescription__',
background: {
service_worker: 'src/serviceWorker.ts',
Expand Down
6 changes: 6 additions & 0 deletions private/vite/platformConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import {PlatformName, Environment} from '../../src/constants.js';
export const platformConfig: PlatformConfig = Object.freeze({
[PlatformName.MyParcel]: {
manifest: {
name: 'MyParcel',
short_name: 'MyParcel',
externally_connectable: {
matches: ['*://*.myparcel.nl/*'],
},
Expand All @@ -20,6 +22,8 @@ export const platformConfig: PlatformConfig = Object.freeze({
},
[PlatformName.Flespakket]: {
manifest: {
name: 'Flespakket',
short_name: 'Flespakket',
externally_connectable: {
matches: ['*://*.flespakket.nl/*'],
},
Expand All @@ -32,6 +36,8 @@ export const platformConfig: PlatformConfig = Object.freeze({
},
[PlatformName.SendMyParcel]: {
manifest: {
name: 'SendMyParcel',
short_name: 'SendMyParcel',
externally_connectable: {
matches: ['*://*.sendmyparcel.be/*'],
},
Expand Down
3 changes: 2 additions & 1 deletion src/types/generic.types.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import {type RequireOnly} from '@myparcel/ts-utils';
import {type Environment, type PlatformName} from '../constants.js';

export type PlatformConfig = Record<
PlatformName,
{
manifest: Partial<chrome.runtime.ManifestV3>;
manifest: Partial<chrome.runtime.ManifestV3> & RequireOnly<chrome.runtime.ManifestV3, 'name'>;
urls: Record<Environment, string>;
}
>;
Expand Down

0 comments on commit 02248b6

Please sign in to comment.