Skip to content

Commit

Permalink
Implemented: entry in translation for static text used in gitbook ser…
Browse files Browse the repository at this point in the history
…ach modal in dxp-components (#23)
  • Loading branch information
amansinghbais committed Jul 9, 2024
1 parent 97ebd99 commit bdf83ae
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
"Add": "Add",
"Add a custom prefix to HotWax order IDs: <inputValue>10001": "Add a custom prefix to HotWax order IDs: <inputValue>10001",
"Add configurations": "Add configurations",
"Analyzing the question to answer your question.": "Analyzing the question to answer your question.",
"Answer based on resources": "Answer based on {count} resources",
"App": "App",
"Approval": "Approval",
"Approve on import": "Approve on import",
"Ask": "Ask",
"Ask...": "Ask...",
"Ask me anything?": "Ask me anything?",
"Auto approve orders": "Auto approve orders",
"Auto cancellations days": "Auto cancellations days",
"Auto order cancellation": "Auto order cancellation",
Expand Down Expand Up @@ -41,11 +46,15 @@
"Failed to remove tag.": "Failed to remove tag.",
"Failed to update product store name.": "Failed to update product store name.",
"Failed to update product store settings.": "Failed to update product store settings.",
"Fetching resources...": "Fetching resources...",
"Fetching time zones": "Fetching time zones",
"Fulfillment": "Fulfillment",
"Global identifier": "Global identifier",
"Go to OMS": "Go to OMS",
"Go to Launchpad": "Go to Launchpad",
"go to page": "go to page",
"go to section": "go to section",
"Help": "Help",
"Hold pre-order physical inventory": "Hold pre-order physical inventory",
"ID": "ID",
"ID prefix": "ID prefix",
Expand All @@ -60,7 +69,10 @@
"Manage configurations": "Manage configurations",
"Minimum shipment threshold": "Minimum shipment threshold",
"Name": "Name",
"No answer found.": "No answer found.",
"No page found.": "No page found.",
"No product store found.": "No product store found.",
"No resource found.": "No resource found.",
"No time zone found": "No time zone found",
"Notifications": "Nofifications",
"OMS": "OMS",
Expand Down Expand Up @@ -93,6 +105,7 @@
"Product store name updated successfully.": "Product store name updated successfully.",
"Product store represents a brand in OMS": "Product store represents a brand in OMS",
"Product store setting updated successfully.": "Product store setting updated successfully.",
"Related Queries": "Related Queries",
"Returns": "Returns",
"Re-route fulfillment": "Re-route fulfillment",
"Routing": "Routing",
Expand All @@ -101,6 +114,9 @@
"Search country": "Search country",
"Search time zones": "Search time zones",
"Soft Allocation": "Soft Allocation",
"Search": "Search",
"Search...": "Search...",
"Searching your query.": "Searching your query.",
"Secondary identifier": "Secondary identifier",
"Select": "Select",
"Select operating countries": "Select operating countries",
Expand Down
5 changes: 5 additions & 0 deletions src/locales/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import en from './en.json';

export default {
'en-US': en
};
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import logger from './logger';
import { dxpComponents } from "@hotwax/dxp-components"
import { login, logout, loader } from "@/user-utils";
import { askQuery, getConfig, getGitBookPage, initialise, searchQuery } from '@/adapter';
import localeMessages from '@/locales';

const app = createApp(App)
.use(IonicVue, {
Expand All @@ -52,6 +53,7 @@ const app = createApp(App)
askQuery,
getConfig,
getGitBookPage,
localeMessages,
initialise,
searchQuery
});
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"baseUrl": ".",
"resolveJsonModule": true,
"types": [
"webpack-env"
],
Expand Down

0 comments on commit bdf83ae

Please sign in to comment.