id
stringlengths 12
53
| messages
listlengths 3
3
|
|---|---|
code_policies-example-3_090c8b1e
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of policies-example-3/admin/navigation.json from the policies-example-3 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"section\": \"other\",\n \"titleId\": \"admin.navigation.label\",\n \"icon\": \"extensions-ic\",\n \"path\": \"/admin/policies-example\"\n}\n\n```"
}
] |
code_policies-example-3_138a9dc0
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of policies-example-3/admin/routes.json from the policies-example-3 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin.app.example\": {\n \"component\": \"F1\",\n \"path\": \"/admin/app/policies-example\"\n }\n}\n\n```"
}
] |
code_policies-example-3_fa2cf03f
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of policies-example-3/docs/README.md from the policies-example-3 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n# [Deprecated] Admin Example\n\n_We're working on our new design system. Please get in touch if you are interested._\n\nAn example admin app that adds a menu button to the admin sidebar and a navigation via parameter example.\n\n### How to develop admins\n\n1. Admins always declare routes in `/admin/app/<route>`\n\n2. Declare the `admin` builder in your manifest\n\n3. When installed, the user navigates to `/admin/<route>`, but your app runs in an iframe that points to `/admin/app/<route>`.\n\n4. You can develop directly in the `/admin/app` route for convenience, but don't forget to test it inside the iframe. :)\n\n### Quickstart\n\n1. Clone this repo\n\n2. `yarn --cwd react/` for code completion\n\n3. `vtex link`\n\n4. Navigate to `workspace--account.myvtex.com/admin/app/example`\n\n```"
}
] |
code_policies-example-3_352a5b83
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of policies-example-3/graphql/schema.graphql from the policies-example-3 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```graphql\ntype ReturnDrivers {\n name: String\n lastName: String\n points: Float\n}\n\ntype ReturnConstructors {\n name: String\n points: Float\n}\n\ntype Query {\n getDrivers: [ReturnDrivers]\n getConstructors: [ReturnConstructors]\n}\n\n```"
}
] |
code_policies-example-3_ce977b57
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of policies-example-3/node/service.json from the policies-example-3 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"memory\": 256,\n \"ttl\": 10,\n \"timeout\": 2,\n \"minReplicas\": 2,\n \"maxReplicas\": 4,\n \"workers\": 1\n}\n\n```"
}
] |
code_policies-example-3_3efea1a3
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of policies-example-3/node/package.json from the policies-example-3 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"dependencies\": {\n \"@types/xmldom\": \"^0.1.31\",\n \"co-body\": \"^6.0.0\",\n \"ramda\": \"^0.25.0\",\n \"xmldom\": \"^0.6.0\"\n },\n \"devDependencies\": {\n \"@types/co-body\": \"^0.0.3\",\n \"@types/jest\": \"^24.0.18\",\n \"@types/node\": \"^12.0.0\",\n \"@types/ramda\": \"types/npm-ramda#dist\",\n \"@vtex/api\": \"6.45.11-beta\",\n \"@vtex/tsconfig\": \"^0.5.6\",\n \"typescript\": \"3.9.7\"\n },\n \"scripts\": {\n \"lint\": \"tsc --noEmit --pretty\"\n },\n \"version\": \"0.2.0\"\n}\n\n```"
}
] |
code_policies-example-3_6bc69617
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of policies-example-3/node/index.ts from the policies-example-3 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport { Service } from '@vtex/api'\nimport type { ServiceContext } from '@vtex/api'\n\nimport type { Clients } from './clients'\nimport { clients } from './clients'\nimport { getDrivers } from './resolvers/getDrivers'\nimport { getConstructors } from './resolvers/getConstructors'\n\ndeclare global {\n // We declare a global Context type just to avoid re-writing ServiceContext<Clients, State> in every handler and resolver\n type Context = ServiceContext<Clients>\n}\n\n// Export a service that defines route handlers and client options.\nexport default new Service({\n clients,\n graphql: {\n resolvers: {\n Query: {\n getDrivers,\n getConstructors,\n },\n },\n },\n})\n\n```"
}
] |
code_policies-example-3_bd8a3c59
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of policies-example-3/react/F1.tsx from the policies-example-3 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport type { FC } from 'react'\nimport { useState } from 'react'\nimport { Layout, PageBlock, Tabs, Tab, ToastProvider } from 'vtex.styleguide'\nimport './styles.global.css'\nimport * as React from 'react'\n\nimport InfosDrivers from './InfosDrivers'\nimport InfosConstructors from './InfosConstructors'\n\nconst F1: FC = () => {\n const [tab, setTab] = useState({\n currentTab: 1,\n })\n\n return (\n <ToastProvider positioning=\"window\">\n <Layout>\n <PageBlock title=\"Informações F1 2020\" variation=\"full\">\n <Tabs>\n <Tab\n label=\"Posição final dos pilotos da F1 2020\"\n active={tab.currentTab === 1}\n onClick={() => setTab({ currentTab: 1 })}\n >\n <InfosDrivers />\n </Tab>\n <Tab\n label=\"Posição final das equipes da F1 2020\"\n active={tab.currentTab === 2}\n onClick={() => setTab({ currentTab: 2 })}\n >\n <InfosConstructors />\n </Tab>\n </Tabs>\n </PageBlock>\n </Layout>\n </ToastProvider>\n )\n}\n\nexport default F1\n\n```"
}
] |
code_policies-example-3_c4f9a980
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of policies-example-3/react/InfosDrivers.tsx from the policies-example-3 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport type { FC } from 'react'\nimport * as React from 'react'\nimport { Table } from 'vtex.styleguide'\nimport { useMemo } from 'react'\nimport { useQuery } from 'react-apollo'\n\nimport getDrivers from './queries/getDrivers.gql'\n\nconst InfosDrivers: FC = () => {\n const defaultSchema = {\n properties: {\n position: {\n title: 'Posição',\n },\n name: {\n title: 'Nome',\n },\n lastName: {\n title: 'Sobrenome',\n },\n points: {\n title: 'Pontos obtidos',\n },\n },\n }\n const { data: dataDrivers } = useQuery(getDrivers)\n\n const listDrivers = useMemo(() => {\n return dataDrivers?.getDrivers?.map(\n (\n element: { id: string; name: string; lastName: string; points: number },\n indexOf: number\n ) => {\n return {\n id: element.id,\n position: `${indexOf + 1}º`,\n name: element.name,\n lastName: element.lastName,\n points: element.points,\n index: indexOf,\n }\n }\n )\n }, [dataDrivers])\n\n return (\n <div className=\"mb5\">\n <Table\n fullWidth\n schema={defaultSchema}\n items={listDrivers}\n emptyStateLabel=\"Não há informações para apresentar (permissão negada)\"\n />\n </div>\n )\n}\n\nexport default InfosDrivers\n\n```"
}
] |
code_policies-example-3_8c8dcef4
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of policies-example-3/react/package.json from the policies-example-3 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"vtex.admin-example\",\n \"version\": \"0.0.12\",\n \"devDependencies\": {\n \"@types/node\": \"^11.12.1\",\n \"@types/react\": \"^16.8.10\",\n \"@types/react-intl\": \"^2.3.17\",\n \"@vtex/tsconfig\": \"^0.4.4\",\n \"apollo-client\": \"^2.4.7\",\n \"graphql\": \"^14.0.2\",\n \"prop-types\": \"^15.7.2\",\n \"react\": \"^17.0.2\",\n \"react-dom\": \"^16.8.6\",\n \"react-intl\": \"^2.7.2\",\n \"typescript\": \"3.9.7\"\n },\n \"dependencies\": {\n \"@types/faker\": \"^4.1.5\",\n \"@types/react\": \"^17.0.38\",\n \"@vtex/api\": \"6.45.6\",\n \"faker\": \"^4.1.0\",\n \"react\": \"^17.0.2\",\n \"react-apollo\": \"^3.1.5\",\n \"typescript\": \"3.9.7\"\n }\n}\n\n```"
}
] |
code_policies-example-3_a6321147
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of policies-example-3/react/styles.global.css from the policies-example-3 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```css\nhtml,\nbody,\n#render-container,\n#render-provider,\n.render-container,\n.render-provider {\n height: 100%;\n}\n\n```"
}
] |
code_policies-example-3_fa4109d8
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of policies-example-3/react/InfosConstructors.tsx from the policies-example-3 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { FC, useMemo } from 'react'\nimport * as React from 'react'\nimport { Table } from 'vtex.styleguide'\nimport { useQuery } from 'react-apollo'\n\nimport getConstructors from './queries/getConstructors.gql'\n\nconst InfosConstructor: FC = () => {\n const defaultSchema = {\n properties: {\n position: {\n title: 'Posição',\n },\n team: {\n title: 'Equipe',\n },\n points: {\n title: 'Pontos obtidos',\n },\n },\n }\n\n const { data: dataConstructors } = useQuery(getConstructors)\n\n const listConstructors = useMemo(() => {\n return dataConstructors?.getConstructors?.map(\n (\n element: { id: string; name: string; points: number },\n indexOf: number\n ) => {\n return {\n id: element.id,\n position: `${indexOf + 1}º`,\n team: element.name,\n points: element.points,\n index: indexOf,\n }\n }\n )\n }, [dataConstructors])\n\n return (\n <div className=\"mb5\">\n <Table\n fullWidth\n schema={defaultSchema}\n items={listConstructors}\n emptyStateLabel=\"Não há informações para apresentar (permissão negada)\"\n />\n </div>\n )\n}\n\nexport default InfosConstructor\n\n```"
}
] |
code_policies-example-3_d48c715f
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of policies-example-3/node/clients/constructors.ts from the policies-example-3 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport type { InstanceOptions, IOContext } from '@vtex/api'\nimport { AppClient } from '@vtex/api'\n\nexport class Constructors extends AppClient {\n constructor(context: IOContext, options?: InstanceOptions) {\n super('vtex.policies-example-2@0.x', context, {\n ...options,\n headers: {\n ...options?.headers,\n ...(context.authToken\n ? { VtexIdclientAutCookie: context.authToken }\n : null),\n 'Content-Type': 'application/json',\n },\n })\n }\n\n public async getConstructors() {\n return this.http.get(`/_v/test-policies-route`)\n }\n}\n\n```"
}
] |
code_policies-example-3_fbea1bec
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of policies-example-3/node/clients/index.ts from the policies-example-3 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport type { ClientsConfig } from '@vtex/api'\nimport { IOClients, LRUCache } from '@vtex/api'\n\nimport { Drivers } from './drivers'\nimport { Constructors } from './constructors'\n\n// Extend the default IOClients implementation with our own custom clients.\nexport class Clients extends IOClients {\n public get drivers() {\n return this.getOrSet('drivers', Drivers)\n }\n\n public get constructors() {\n return this.getOrSet('constructors', Constructors)\n }\n}\n\nconst REQUESTS_TIMEOUT = 30000\n\n// Create a LRU memory cache for the Status client.\n// The @vtex/api HttpClient respects Cache-Control headers and uses the provided cache.\nconst memoryCache = new LRUCache<string, any>({ max: 5000 })\n\nmetrics.trackCache('status', memoryCache)\n\nexport const clients: ClientsConfig<Clients> = {\n implementation: Clients,\n options: {\n default: {\n retries: 2,\n timeout: REQUESTS_TIMEOUT,\n },\n status: {\n memoryCache,\n },\n },\n}\n\n```"
}
] |
code_policies-example-3_5f4816fc
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of policies-example-3/node/clients/drivers.ts from the policies-example-3 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport type { InstanceOptions, IOContext } from '@vtex/api'\nimport { AppClient } from '@vtex/api'\n\nexport class Drivers extends AppClient {\n constructor(context: IOContext, options?: InstanceOptions) {\n super('vtex.policies-example@0.x', context, {\n ...options,\n headers: {\n ...options?.headers,\n ...(context.authToken\n ? { VtexIdclientAutCookie: context.authToken }\n : null),\n 'Content-Type': 'application/json',\n },\n })\n }\n\n public async getDrivers() {\n return this.http.get(`/_v/test-policies-service-route`)\n }\n}\n\n```"
}
] |
code_policies-example-3_64cf64ce
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of policies-example-3/node/resolvers/getConstructors.ts from the policies-example-3 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nexport async function getConstructors(_: unknown, __: unknown, ctx: Context) {\n const {\n clients: { constructors },\n } = ctx\n\n const retorno = await constructors.getConstructors()\n\n return retorno\n}\n\n```"
}
] |
code_policies-example-3_ca631c36
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of policies-example-3/node/resolvers/getDrivers.ts from the policies-example-3 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nexport async function getDrivers(_: unknown, __: unknown, ctx: Context) {\n const {\n clients: { drivers },\n } = ctx\n\n return drivers.getDrivers()\n}\n\n```"
}
] |
code_policies-example-3_a83d9b78
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of policies-example-3/react/queries/getDrivers.gql from the policies-example-3 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```graphql\nquery getDrivers {\n getDrivers {\n name\n lastName\n points\n }\n}\n\n```"
}
] |
code_policies-example-3_cd42af42
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of policies-example-3/react/queries/getConstructors.gql from the policies-example-3 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```graphql\nquery getConstructors {\n getConstructors {\n name\n points\n }\n}\n\n```"
}
] |
code_session-client_b5698207
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of session-client/docs/README.md from the session-client VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n# Session Client\n\nThe Session Client app provides React hooks and GraphQL queries for your components to read and update the [VTEX Session cookie](https://help.vtex.com/en/tutorial/vtex-session-sessions-system-overview--6C4Edou6bYqqEAOCAg2MQQ), responsible for saving data of a specific session of a user browsing in your store. \n\n## Installation\n\nIn your React app's `manifest.json` file, add the Session Client app to the dependency list:\n\n```\n\"dependencies\": {\n \"vtex.session-client\": \"1.x\"\n }\n```\n\n> ℹ️ You can have full TypeScript support running `vtex setup --typings` in your CLI afterwards.\n\n## Configuration\n\nThe Session Client's React hooks allow you to read and update the VTEX Session cookie as desired. On the other hand, the GraphQL query and mutation enable your app to fetch and change the current user session.\n\n### React hooks\n\nTo read the VTEX Session cookie:\n\n- [`useRenderSession`](#useRenderSession)\n- [`useFullSession`](#useFullSession)\n- [`useLazyFullSession`](#useLazyFullSession)\n\nTo update the VTEX Session cookie:\n\n- [`useUpdateSession`](#useUpdateSession)\n- [`useUpdateSessionInline`](#useUpdateSessionInline)\n\n#### `useRenderSession` hook\n\nThis hook is the fastest way to access session data, using the session response from `render-session`. One caveat: the session values are limited to a [set of values](https://github.com/vtex-apps/render-session/blob/master/src/constants.ts). If you need fields that are not in this set, you can use [`useFullSession`](#useFullSession) or [`useLazyFullSession`](#useLazyFullSession).\n\n```tsx\nimport React from 'react'\nimport { useRenderSession } from 'vtex.session-client'\n\nfunction MyComponent() {\n const { loading, session, error } = useRenderSession()\n\n if (loading) {\n return <>Session is loading</>\n }\n\n if (error) {\n return <>Session has errors</>\n }\n\n console.log({ session })\n\n return <>Session is ready</>\n}\n\nexport default MyComponent\n```\n\n#### `useFullSession` hook\n\n> ⚠️ It's not possible to return the session during Server Side Rendering since it is a private query.\n\nRuns a GraphQL query on the client side to query the full user session.\n\nUnder the hood, it's a wrapper of React Apollo's `useQuery` passing the GraphQL session query. You can read more about the `useQuery` API [here](https://www.apollographql.com/docs/react/api/react/hooks/#usequery).\n\n\n```tsx\nimport React from 'react'\nimport { useFullSession } from 'vtex.session-client'\n\nfunction MyComponent() {\n const { loading, data, error } = useFullSession()\n\n if (loading) {\n return <>Session is loading</>\n }\n\n if (error) {\n return <>Session has errors</>\n }\n\n console.log({ session: data?.session })\n\n return <>Session is ready</>\n}\n\nexport default MyComponent\n```\n\nIt also accepts a GraphQL variable called `items` which is an array of strings. These strings should match attributes inside the Session object, and only those attributes will be then fetched and returned.\n\nFor example:\n\n```tsx\nuseFullSession({\n variables: {\n items: ['store.channel', 'store.countryCode']\n }\n})\n```\n\n#### `useLazyFullSession` hook\n\nThe same as [`useFullSession`](#useFullSession), but it uses React Apollo's `useLazyQuery` hook instead. You can read more about `useLazyQuery` API [here](https://www.apollographql.com/docs/react/api/react/hooks/#uselazyquery).\n\n```tsx\nimport React from 'react'\nimport { useLazyFullSession } from 'vtex.session-client'\n\nfunction MyComponent() {\n const [getSession, session] = useLazyFullSession()\n\n console.log({ session })\n\n return <button onClick={() => getSession()}>Get session</button>\n}\n\nexport default MyComponent\n```\n\nIt also accepts a GraphQL variable called `items`, which is an array of strings. These strings should match attributes inside the Session object, and only those attributes will be then fetched and returned.\n\nFor example:\n\n```tsx\nuseLazyFullSession({\n variables: {\n items: ['store.channel', 'store.countryCode']\n }\n})\n```\n\n#### `useUpdateSession` hook\n\nUpdates the values of a session. Under the hood, it uses React Apollo's `useMutation` hook. You can read more about `useMutation` API [here](https://www.apollographql.com/docs/react/api/react/hooks/#usemutation).\n\nUnlike the `useMutation` hook, this one only returns the mutation function (called in the example below as `updateSession`) — it does not return the mutation result. \n\nAfter calling the mutation function, the hook reloads the page, guaranteeing that the whole page data is updated to the new session parameters. This is extremely useful in pages where the content changes according to the session values, such as the search results. \n\n```tsx\nimport React from 'react'\nimport { useUpdateSession } from 'vtex.session-client'\n\nfunction MyComponent() {\n const updateSession = useUpdateSession()\n\n return (\n <button\n onClick={() =>\n updateSession({\n variables: {\n fields: { foo: 'bar', baz: 123 },\n },\n })\n }\n >\n Update session\n </button>\n )\n}\n\nexport default MyComponent\n```\n\n#### `useUpdateSessionInline` hook\n\nUpdates the values of a session. Under the hood, it uses React Apollo's `useMutation` hook. You can read more about `useMutation` API [here](https://www.apollographql.com/docs/react/api/react/hooks/#usemutation).\n\nDifferently from the [`useUpdateSession`](#useUpdateSession), this hook will not reload the page after calling the mutation function.\n\n```tsx\nimport React from 'react'\nimport { useUpdateSessionInline } from 'vtex.session-client'\n\nfunction MyComponent() {\n const [updateSession, updatedSession] = useUpdateSessionInline()\n\n console.log({ updatedSession })\n\n return (\n <button\n onClick={() =>\n updateSession({\n variables: {\n fields: { foo: 'bar', baz: 123 },\n },\n })\n }\n >\n Update session\n </button>\n )\n}\n\nexport default MyComponent\n```\n\nIt also accepts a GraphQL variable called `items`, which is an array of strings. These strings should match attributes inside of the Session object, and only those attributes will be then fetched and returned.\n\nFor example:\n\n```tsx\nupdateSession({\n variables: {\n fields: { foo: 'bar', baz: 123 },\n items: ['store.channel', 'store.countryCode']\n }\n})\n```\n\n### GraphQL query and mutation\n\n#### `session` query\n\nGets the current user session.\n\n```graphql\nquery session($items: [String]) {\n session(items: $items) @context(provider: \"vtex.session-client\") {\n ... on SessionSuccess {\n id\n namespaces\n }\n ... on SessionError {\n type\n message\n }\n }\n}\n```\n\n#### `updateSession` mutation\n\nChanges the current user session using the following variables: `{ \"fields\": { \"foo\": 123, \"baz\": \"abc\" } }`\n\n```graphql\nmutation updateSession($fields: SessionFieldsJSONInput!, $items: [String]) {\n updateSession(fields: $fields, items: $items)\n @context(provider: \"vtex.session-client\") {\n ... on SessionSuccess {\n id\n namespaces\n }\n ... on SessionError {\n type\n message\n }\n }\n}\n```\n\n```"
}
] |
code_session-client_8ecf6def
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of session-client/graphql/schema.graphql from the session-client VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```graphql\ntype Query {\n session(items: [String]): Session @cacheControl(scope: PRIVATE, maxAge: SHORT)\n}\n\ntype Mutation {\n updateSession(fields: SessionFieldsJSONInput!, items: [String]): Session\n}\n\nunion Session = SessionError | SessionSuccess\n\nscalar SessionNamespaces\n\ntype SessionSuccess {\n id: String!\n namespaces: SessionNamespaces\n}\n\ntype SessionError {\n type: String\n message: String\n}\n\nscalar SessionFieldsJSONInput\n\n```"
}
] |
code_session-client_a969e3c5
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of session-client/node/service.json from the session-client VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"memory\": 256,\n \"ttl\": 10,\n \"timeout\": 1,\n \"minReplicas\": 2,\n \"maxReplicas\": 5\n}\n\n```"
}
] |
code_session-client_21398689
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of session-client/node/package.json from the session-client VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"dependencies\": {\n \"cookie\": \"^0.4.1\"\n },\n \"devDependencies\": {\n \"@types/cookie\": \"^0.4.0\",\n \"@types/node\": \"^12.0.0\",\n \"@vtex/api\": \"6.39.0\",\n \"@vtex/tsconfig\": \"^0.4.4\",\n \"typescript\": \"3.9.7\"\n },\n \"version\": \"1.0.5\"\n}\n\n```"
}
] |
code_session-client_45f7f6dc
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of session-client/node/index.ts from the session-client VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport { RecorderState, Service, IOClients, ServiceContext } from '@vtex/api'\n\nimport { Clients } from './clients'\nimport { updateSession } from './resolvers/updateSession'\nimport { session } from './resolvers/session'\n\nconst MEDIUM_TIMEOUT_MS = 2 * 1000\n\nexport default new Service<IOClients, RecorderState, ServiceContext<Clients>>({\n clients: {\n implementation: Clients,\n options: {\n default: {\n timeout: MEDIUM_TIMEOUT_MS,\n },\n },\n },\n graphql: {\n resolvers: {\n Session: {\n __resolveType(obj) {\n if (obj.type) {\n return 'SessionError'\n }\n\n return 'SessionSuccess'\n },\n },\n Mutation: {\n updateSession,\n },\n Query: {\n session,\n },\n },\n },\n})\n\n```"
}
] |
code_session-client_0e1fe3bb
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of session-client/react/useLazyFullSession.tsx from the session-client VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { QueryHookOptions, useLazyQuery } from 'react-apollo'\n\nimport type { Session } from './SessionTypes'\nimport SessionQuery from './graphql/session.graphql'\n\ninterface Data {\n session: Session\n}\n\ninterface Variables {\n items?: string[]\n}\n\nfunction useLazyFullSession(options?: QueryHookOptions<Data, Variables>) {\n return useLazyQuery<Data>(SessionQuery, options)\n}\n\nexport default useLazyFullSession\n\n```"
}
] |
code_session-client_0e31d114
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of session-client/react/useUpdateSessionInline.tsx from the session-client VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { QueryHookOptions, useMutation } from 'react-apollo'\n\nimport UpdateSesionMutation from './graphql/updateSession.graphql'\nimport type { Session } from './SessionTypes'\n\ninterface Data {\n updateSession: Session\n}\n\ninterface Variables {\n fields: Record<string, string | number>\n items?: string[]\n}\n\nfunction useUpdateSessionInline(options?: QueryHookOptions<Data, Variables>) {\n return useMutation<Data, Variables>(UpdateSesionMutation, options)\n}\n\nexport default useUpdateSessionInline\n\n```"
}
] |
code_session-client_80e599fe
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of session-client/react/useFullSession.tsx from the session-client VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { QueryHookOptions, useQuery } from 'react-apollo'\n\nimport type { Session } from './SessionTypes'\nimport SessionQuery from './graphql/session.graphql'\n\ninterface Data {\n session: Session\n}\n\ninterface Variables {\n items?: string[]\n}\n\nfunction useFullSession(options?: Omit<QueryHookOptions<Data>, 'ssr'>) {\n return useQuery<Data, Variables>(SessionQuery, {\n ...options,\n ssr: false,\n })\n}\n\nexport default useFullSession\n\n```"
}
] |
code_session-client_4989dd83
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of session-client/react/useUpdateSession.tsx from the session-client VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { useCallback } from 'react'\nimport {\n MutationFunctionOptions,\n QueryHookOptions,\n useMutation,\n} from 'react-apollo'\n\nimport UpdateSesionMutation from './graphql/updateSession.graphql'\nimport type { Session } from './SessionTypes'\n\ninterface Data {\n updateSession: Session\n}\n\ninterface Variables {\n fields: Record<string, string | number>\n items?: string[]\n}\n\nfunction useUpdateSession(options?: QueryHookOptions<Data, Variables>) {\n const [updateSessionMutation] = useMutation<Data, Variables>(\n UpdateSesionMutation,\n options\n )\n\n const updateSession = useCallback(\n async (mutationOptions: MutationFunctionOptions<Data, Variables>) => {\n await updateSessionMutation(mutationOptions)\n window.location.reload()\n\n // Holds promise until page reload\n return new Promise(() => {})\n },\n [updateSessionMutation]\n )\n\n return updateSession\n}\n\nexport default useUpdateSession\n\n```"
}
] |
code_session-client_fa3a673a
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of session-client/react/package.json from the session-client VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"session-client\",\n \"version\": \"1.0.5\",\n \"scripts\": {\n \"test\": \"vtex-test-tools test\"\n },\n \"dependencies\": {\n \"apollo-client\": \"^2.6.8\",\n \"react\": \"^16.12.0\",\n \"react-apollo\": \"^3.1.3\",\n \"react-dom\": \"^16.12.0\",\n \"react-intl\": \"^3.12.0\"\n },\n \"devDependencies\": {\n \"@apollo/react-testing\": \"^3.1.3\",\n \"@types/jest\": \"^25.1.4\",\n \"@types/node\": \"^13.9.8\",\n \"@types/react\": \"^16.9.31\",\n \"@vtex/test-tools\": \"^3.3.2\",\n \"@vtex/tsconfig\": \"^0.4.4\",\n \"apollo-cache-inmemory\": \"^1.6.5\",\n \"graphql\": \"^14.6.0\",\n \"typescript\": \"3.9.7\",\n \"vtex.render-runtime\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.render-runtime@8.126.7/public/@types/vtex.render-runtime\"\n }\n}\n\n```"
}
] |
code_session-client_a49193f7
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of session-client/react/useRenderSession.tsx from the session-client VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { useEffect, useState } from 'react'\n\nimport { Session } from './SessionTypes'\n\ninterface SessionState {\n loading: boolean\n session: Session | undefined\n error: boolean | undefined\n}\n\nfunction useRenderSession() {\n const [session, setSession] = useState<SessionState>({\n loading: true,\n session: undefined,\n error: undefined,\n })\n\n const sessionPromise = window?.__RENDER_8_SESSION__?.sessionPromise as\n | Promise<{\n response: Session\n }>\n | undefined\n\n useEffect(() => {\n if (!sessionPromise) {\n return\n }\n\n sessionPromise.then((sessionResponse) => {\n const { response } = sessionResponse\n\n setSession({\n loading: false,\n session: response,\n error: 'type' in response && 'message' in response,\n })\n })\n }, [sessionPromise])\n\n return session\n}\n\nexport default useRenderSession\n\n```"
}
] |
code_session-client_f5584d0b
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of session-client/react/SessionTypes.ts from the session-client VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nexport interface SessionSuccess {\n id: string\n namespaces: {\n [key: string]: Record<string, unknown>\n public: Record<string, { value: string }>\n }\n}\n\nexport interface SessionUnauthorized {\n type: 'Unauthorized'\n message: string\n}\n\nexport interface SessionForbidden {\n type: 'Forbidden'\n message: string\n}\n\nexport type Session = SessionSuccess | SessionUnauthorized | SessionForbidden\n\n```"
}
] |
code_session-client_29b73f83
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of session-client/node/clients/session.ts from the session-client VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport { JanusClient } from '@vtex/api'\nimport parseCookie from 'cookie'\n\nconst SESSION_COOKIE = 'vtex_session'\n\nconst BASE_ROUTE = '/api/sessions'\n\ninterface SessionPostResponse {\n sessionToken: string\n segmentToken: string\n}\n\nexport class Session extends JanusClient {\n /**\n * Get the session data using the given token\n */\n public getSession = async (token: string, items: string[] = ['*']) => {\n const { data: sessionData, headers } = await this.http.getRaw(BASE_ROUTE, {\n headers: {\n 'Content-Type': 'application/json',\n Cookie: `vtex_session=${token};`,\n },\n metric: 'session-get',\n params: {\n items: items.join(','),\n },\n })\n\n return {\n sessionData,\n sessionToken: extractSessionCookie(headers) ?? token,\n }\n }\n\n /**\n * Update the public portion of this session\n */\n public updateSession = (publicFields: Record<string, any>, token: string) => {\n const config = {\n headers: {\n 'Content-Type': 'application/json',\n Cookie: `vtex_session=${token};`,\n },\n metric: 'session-update',\n }\n\n const fields = Object.entries(publicFields).reduce<\n Record<string, { value: string | number }>\n >((acc, [fieldName, fieldValue]) => {\n acc[fieldName] = { value: fieldValue }\n\n return acc\n }, {})\n\n const data = { public: fields }\n\n return this.http.patch<SessionPostResponse>(BASE_ROUTE, data, config)\n }\n}\n\nfunction extractSessionCookie(headers: Record<string, string>) {\n for (const setCookie of headers['set-cookie'] ?? []) {\n const parsedCookie = parseCookie.parse(setCookie)\n const sessionCookie = parsedCookie[SESSION_COOKIE]\n\n if (sessionCookie != null) {\n return sessionCookie\n }\n }\n\n return null\n}\n\n```"
}
] |
code_session-client_112a45d2
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of session-client/node/clients/index.ts from the session-client VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport { IOClients } from '@vtex/api'\n\nimport { Session } from './session'\n\nexport class Clients extends IOClients {\n public get customSession() {\n return this.getOrSet('customSession', Session)\n }\n}\n\n```"
}
] |
code_session-client_77792be9
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of session-client/node/resolvers/session.ts from the session-client VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport { ServiceContext } from '@vtex/api'\n\nimport { Clients } from '../clients'\nimport { getSessionToken } from '../modules/sessionToken'\n\nexport const VTEX_SESSION = 'vtex_session'\n\ninterface Args {\n items?: string[]\n}\n\nexport async function session(\n _: any,\n { items }: Args,\n context: ServiceContext<Clients>\n) {\n const {\n clients: { customSession },\n } = context\n\n const sessionCookie = getSessionToken(context.cookies)\n\n const { sessionData } = await customSession.getSession(sessionCookie, items)\n\n return sessionData\n}\n\n```"
}
] |
code_session-client_8f403871
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of session-client/node/resolvers/updateSession.ts from the session-client VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport { ServiceContext } from '@vtex/api'\n\nimport { Clients } from '../clients'\nimport { getSessionToken } from '../modules/sessionToken'\n\ninterface Args {\n fields: Array<{ name: string; value: string | number }>\n items?: string[]\n}\n\nexport async function updateSession(\n _: any,\n { fields, items }: Args,\n context: ServiceContext<Clients>\n) {\n const {\n clients: { customSession },\n } = context\n\n const sessionCookie = getSessionToken(context.cookies)\n\n await customSession.updateSession(fields, sessionCookie)\n\n const { sessionData } = await customSession.getSession(sessionCookie, items)\n\n return sessionData\n}\n\n```"
}
] |
code_session-client_5895a3ed
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of session-client/node/modules/sessionToken.ts from the session-client VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport { ResolverError, ServiceContext } from '@vtex/api'\n\nexport const VTEX_SESSION = 'vtex_session'\n\nexport function getSessionToken(cookies: ServiceContext['cookies']) {\n const sessionCookie = cookies.get(VTEX_SESSION)\n\n if (sessionCookie === undefined)\n throw new ResolverError(\n `Invalid request for session, the ${VTEX_SESSION} wasn't provided!`\n )\n\n return sessionCookie\n}\n\n```"
}
] |
code_session-client_6709ac4d
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of session-client/react/typings/gql.d.ts from the session-client VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\ndeclare module '*.gql' {\n import { DocumentNode } from 'graphql'\n\n const Schema: DocumentNode\n\n export default Schema\n}\n\ndeclare module '*.graphql' {\n import { DocumentNode } from 'graphql'\n\n const schema: DocumentNode\n\n export default Schema\n}\n\n```"
}
] |
code_session-client_e9967673
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of session-client/react/typings/global.d.ts from the session-client VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\ninterface Window extends Window {\n __RENDER_8_SESSION__: {\n sessionPromise: Promise<{ response: SessionResponse }>\n }\n}\n\n```"
}
] |
code_session-client_bbb292cc
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of session-client/react/typings/css.d.ts from the session-client VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\ndeclare module '*.css' {\n type Styles = {\n [selector: string]: string\n }\n\n const styles: Styles\n\n export default styles\n}\n\n```"
}
] |
code_session-client_a22accb4
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of session-client/react/graphql/updateSession.graphql from the session-client VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```graphql\nmutation updateSession($fields: SessionFieldsJSONInput!, $items: [String]) {\n updateSession(fields: $fields, items: $items)\n @context(provider: \"vtex.session-client\") {\n ... on SessionSuccess {\n id\n namespaces\n }\n ... on SessionError {\n type\n message\n }\n }\n}\n\n```"
}
] |
code_session-client_7395b780
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of session-client/react/graphql/session.graphql from the session-client VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```graphql\nquery session($items: [String]) {\n session(items: $items) @context(provider: \"vtex.session-client\") {\n ... on SessionSuccess {\n id\n namespaces\n }\n ... on SessionError {\n type\n message\n }\n }\n}\n\n```"
}
] |
code_b2b-quotes_9a7e9166
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/sl.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"B2B ponudbe\",\n \"admin/b2b-quotes.navigation.keywords\": \"b2b, ponudba, ponudbe, košarica, košarice, iztek\",\n \"admin/b2b-quotes.settings.title\": \"Nastavitve ponudb B2B\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"Shranjevanje sprememb ni uspelo\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"Nastavitve uspešno shranjene\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"Privzeto obdobje poteka (v dnevih) za ponudbe in shranjene košarice\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"Upravljanje ponudb za tržnico\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"Nastavite, kako se ponudbe upravljajo na tržnici.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"Kdo je odgovoren za upravljanje ponudb?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"Tržnica\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"Ponudbe upravlja samo glavna tržnica.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"Prodajalci\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"Prodajalci upravljajo ponudbe za svoje izdelke in se lahko odločijo, da jih ne upoštevajo.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"Shrani nastavitve\",\n \"store/b2b-quotes.myAccountLink\": \"Ponudbe in shranjeni vozički\",\n \"store/b2b-quotes.create.title\": \"Ustvari ponudbo\",\n \"store/b2b-quotes.create.nameLabel\": \"Ime\",\n \"store/b2b-quotes.create.descriptionLabel\": \"Opombe\",\n \"store/b2b-quotes.create.success\": \"Ponudba uspešno shranjena\",\n \"store/b2b-quotes.create.error\": \"Napaka pri shranjevanju ponudbe\",\n \"store/b2b-quotes.create.required\": \"Vnesite ime za svojo ponudbo\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"Ime ponudbe\",\n \"store/b2b-quotes.create.empty-state-label\": \"Če želite ustvariti ponudbo, začnite dodajati izdelke v košarico.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{znakov je ostalo}=500{meja 500 znakov je dosežena reached}other{znakov je ostalo}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"Shranite za pozneje\",\n \"store/b2b-quotes.create.button.request-quote\": \"Zahtevajte ponudbo\",\n \"store/b2b-quotes.back\": \"Nazaj\",\n \"store/b2b-quotes.error.notAuthenticated\": \"Za ogled te vsebine se prijavite.\",\n \"store/b2b-quotes.error.notPermitted\": \"Nimate potrebnih dovoljenj za ogled te vsebine.\",\n \"store/b2b-quotes.quotes-table.title\": \"Moje ponudbe\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"Nova ponudba\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"Ni najdenih ponudb.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"Podrobnosti\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"Referenčno ime\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"Skupaj\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"Ustvaril\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"Ustvarjeno dne\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"Datum veljavnosti\",\n \"store/b2b-quotes.quotes-table.status.title\": \"Stanje\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"Zadnja posodobitev\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"Organizacija\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"Stroškovno mesto\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"Org. in stroškovno mesto\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"Išči organizacije...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"Izberite stroškovna mesta...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"Pokaži vrstice\",\n \"store/b2b-quotes.quotes-table.of\": \"od\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"Najdi\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"Preklopi vidna polja\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"Prikaži vse\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"Skrij vse\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"Počisti filtre\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"Stanje\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"Vsi\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"Noben\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"Kateri koli\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"je\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"vsebuje\",\n \"store/b2b-quotes.quote-details.title\": \"Podrobnosti ponudbe\",\n \"store/b2b-quotes.quote-details.decline\": \"Zavrni\",\n \"store/b2b-quotes.quote-details.save\": \"Shrani ponudbo\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"Predložite prodajnemu predstavniku\",\n \"store/b2b-quotes.quote-details.use-quote\": \"Uporabi ponudbo\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"Skupaj\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"Datum veljavnosti\",\n \"store/b2b-quotes.quote-details.status.title\": \"Stanje\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"Slika\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"Ref. koda\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"Ime\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"Količina\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"Cena\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"Skupaj\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"Uporabi odstotek popusta\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"Uporabite odstotek popusta na delno vsoto ponudbe. Opomba: To bo preglasilo vse spremembe posameznih cen SKU.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"Odstotek popusta ni na voljo, ker promocija že uporablja popust, ki je višji od največjega ročnega popusta.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"Ročni popusti nad {maxDiscount}% bodo samodejno zavrnjeni.\",\n \"store/b2b-quotes.quote-details.products.title\": \"Artikli ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"Opombe lahko dodate, ko so ponudbe ustvarjene.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"Posodobi zgodovino\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, =0{Ustvarjeno}other{Posodobljeno}} na {date} z {email} ({role}) s stanjem {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"Opombe:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"Dodaj opombo\",\n \"store/b2b-quotes.quote-details.update-success\": \"Ponudba uspešno shranjena\",\n \"store/b2b-quotes.quote-details.update-error\": \"Napaka pri shranjevanju ponudbe. Za več podrobnosti glejte konzolo.\",\n \"store/b2b-quotes.quote-details.use-error\": \"Napaka pri shranjevanju ponudbe. Za več podrobnosti glejte konzolo.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"Nekateri popusti so višji od dovoljenih\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"Odstotek popusta\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"Izvirni delni seštevek\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"Izvorna cena\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"Navedena cena\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"Naveden vmesni seštevek\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"Sprememba datuma izteka veljavnosti\",\n \"store/b2b-quotes.quote-locking.title\": \"Ponudba v uporabi\",\n \"store/b2b-quotes.quote-locking.message\": \"Vaša košarica trenutno vsebuje artikle iz ponudbe in je ni mogoče spreminjati. Za nadaljevanje brskanja se lahko vrnete na stran za dokončanje nakupa ali počistite košarico.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"Nazaj na blagajno\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"Počistite košarico\",\n \"store/b2b-quotes.quote-status.ready\": \"Pripravljeno\",\n \"store/b2b-quotes.quote-status.placed\": \"Oddano\",\n \"store/b2b-quotes.quote-status.revised\": \"Pregledano\",\n \"store/b2b-quotes.quote-status.pending\": \"V čakanju\",\n \"store/b2b-quotes.quote-status.expired\": \"Poteklo\",\n \"store/b2b-quotes.quote-status.declined\": \"Zavrnjeno\"\n}\n\n```"
}
] |
code_b2b-quotes_50085b42
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/nl.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"B2B offertes\",\n \"admin/b2b-quotes.navigation.keywords\": \"b2b, offerte, offertes, winkelwagen, artikelen, vervaldatum\",\n \"admin/b2b-quotes.settings.title\": \"B2B offerte-instellingen\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"Instellingen opslaan mislukt\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"Instellingen succesvol opgeslagen\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"Standaard vervalperiode (in dagen) voor offertes en opgeslagen winkelwagens\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"Offertebeheer voor de marktplaats\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"Configureer hoe offertes op de marktplaats worden beheerd.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"Wie is verantwoordelijk voor het beheren van offertes?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"Marktplaats\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"Alleen de hoofdmarktplaats beheert offertes.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"Verkopers\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"Verkopers beheren offertes voor hun eigen producten en kunnen ervoor kiezen om geen offertes mee te nemen.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"Instellingen opslaan\",\n \"store/b2b-quotes.myAccountLink\": \"Offertes en opgeslagen winkelmanden\",\n \"store/b2b-quotes.create.title\": \"Offerte aanmaken\",\n \"store/b2b-quotes.create.nameLabel\": \"Naam\",\n \"store/b2b-quotes.create.descriptionLabel\": \"Notities\",\n \"store/b2b-quotes.create.success\": \"Offerte opgeslagen\",\n \"store/b2b-quotes.create.error\": \"Fout bij het opslaan van offerte\",\n \"store/b2b-quotes.create.required\": \"Voer een naam in voor uw offerte\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"Offertenaam\",\n \"store/b2b-quotes.create.empty-state-label\": \"Om een offerte aan te maken, begin met het toevoegen van artikelen aan uw winkelwagen.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{teken resterend}=500{limiet van 500 tekens is bereikt}other{tekens resterend}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"Opslaan voor later\",\n \"store/b2b-quotes.create.button.request-quote\": \"Offerte aanvragen\",\n \"store/b2b-quotes.back\": \"Terug\",\n \"store/b2b-quotes.error.notAuthenticated\": \"Log in om deze inhoud te bekijken.\",\n \"store/b2b-quotes.error.notPermitted\": \"U hebt niet de benodigde rechten om deze inhoud te bekijken.\",\n \"store/b2b-quotes.quotes-table.title\": \"Mijn offertes\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"Nieuwe offerte\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"Geen offertes gevonden.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"Details\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"Ref. naam\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"Subtotaal\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"Gemaakt door\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"Gemaakt op\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"Vervaldatum\",\n \"store/b2b-quotes.quotes-table.status.title\": \"Status\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"Laatste update\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"Organisatie\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"Kostencentrum\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"Org- en kostencentrum\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"Organisaties zoeken...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"Zoek kostencentrum...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"Toon rijen\",\n \"store/b2b-quotes.quotes-table.of\": \"van\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"Zoek\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"Schakelen tussen zichtbare velden\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"Toon alles\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"Verberg alles\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"Wis filters\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"Status\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"Alle\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"Geen\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"Elke\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"is\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"inclusief\",\n \"store/b2b-quotes.quote-details.title\": \"Offerte informatie\",\n \"store/b2b-quotes.quote-details.decline\": \"Afwijzen\",\n \"store/b2b-quotes.quote-details.save\": \"Offerte opslaan\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"Indienen aan verkoper\",\n \"store/b2b-quotes.quote-details.use-quote\": \"Offerte gebruiken\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"Subtotaal\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"Vervaldatum\",\n \"store/b2b-quotes.quote-details.status.title\": \"Status\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"Afbeelding\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"Ref. code\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"Naam\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"Aantal artikelen\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"Prijs\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"Totaal\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"Kortingspercentage toepassen\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"Pas een kortingspercentage toe op het subtotaal van de offerte. Merk op dat wijzigingen in de prijzen van individuele voorraadhoudende eenheden hierdoor worden overschreven.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"Procentuele korting is niet beschikbaar omdat een promotie al een korting toepast die hoger is dan de maximale handmatige korting.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"Handmatige kortingen boven {maxDiscount}% worden automatisch geweigerd.\",\n \"store/b2b-quotes.quote-details.products.title\": \"Artikelen ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"Nadat de offerte is gemaakt, kunt u er nog notities aan toevoegen.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"Geschiedenis bijwerken\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, one {} =0{Gemaakt}other{Bijgewerkt}} op {date} door {email} ({role}) met status {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"Notities:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"Notitie toevoegen\",\n \"store/b2b-quotes.quote-details.update-success\": \"Offerte opgeslagen\",\n \"store/b2b-quotes.quote-details.update-error\": \"Fout bij het opslaan van offerte. Zie de console voor meer informatie.\",\n \"store/b2b-quotes.quote-details.use-error\": \"Fout bij gebruik van offerte. Zie de console voor meer informatie.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"Sommige kortingen zijn hoger dan toegestaan\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"Kortingspercentage\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"Oorspronkelijk Subtotaal\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"Oorspronkelijke Prijs\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"Geoffreerde Prijs\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"Geoffreerd Subtotaal\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"Vervaldatum Wijzigen\",\n \"store/b2b-quotes.quote-locking.title\": \"Offerte in Gebruik\",\n \"store/b2b-quotes.quote-locking.message\": \"Uw winkelwagen bevat momenteel artikelen uit een offerte en kan niet worden gewijzigd. U kunt terugkeren naar de afrekenpagina of uw winkelwagen leegmaken om verder te kijken.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"Terug naar afrekenen\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"Winkelwagen leeg maken\",\n \"store/b2b-quotes.quote-status.ready\": \"Klaar\",\n \"store/b2b-quotes.quote-status.placed\": \"Geplaatst\",\n \"store/b2b-quotes.quote-status.revised\": \"Herzien\",\n \"store/b2b-quotes.quote-status.pending\": \"In afwachting\",\n \"store/b2b-quotes.quote-status.expired\": \"Vervallen\",\n \"store/b2b-quotes.quote-status.declined\": \"Afgewezen\"\n}\n\n```"
}
] |
code_b2b-quotes_885d3dfb
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/ja.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"B2B 見積り\",\n \"admin/b2b-quotes.navigation.keywords\": \"b2b, 見積り, 見積り, カート, カート, 有効期限\",\n \"admin/b2b-quotes.settings.title\": \"B2B 見積り設定\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"設定を保存できませんでした\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"設定の保存が完了しました\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"見積りと保存したカートの既定の有効期限(日数)\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"マーケットプレイスの見積管理\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"マーケットプレイスで見積の管理方法を設定します。\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"誰が見積の管理を担当しますか?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"マーケットプレイス\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"メインのマーケットプレイスのみが見積を管理します。\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"販売者\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"販売者は自分の製品の見積を管理し、見積を計上しない選択ができます。\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"設定の保存\",\n \"store/b2b-quotes.myAccountLink\": \"見積りと保存したカート\",\n \"store/b2b-quotes.create.title\": \"見積りの作成\",\n \"store/b2b-quotes.create.nameLabel\": \"名前\",\n \"store/b2b-quotes.create.descriptionLabel\": \"備考\",\n \"store/b2b-quotes.create.success\": \"見積りの保存が完了しました\",\n \"store/b2b-quotes.create.error\": \"見積りの保存中にエラーが発生しました\",\n \"store/b2b-quotes.create.required\": \"見積りの名前を入力します\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"見積り名\",\n \"store/b2b-quotes.create.empty-state-label\": \"見積りを作成するには、まずカートに項目を追加してください。\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{文字残り}=500{500 文字の上限に到達}other{文字残り}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"後で使えるように保存\",\n \"store/b2b-quotes.create.button.request-quote\": \"見積りの依頼\",\n \"store/b2b-quotes.back\": \"戻る\",\n \"store/b2b-quotes.error.notAuthenticated\": \"このコンテンツを表示するにはログインしてください。\",\n \"store/b2b-quotes.error.notPermitted\": \"このコンテンツを表示するのに必要な権限がありません。\",\n \"store/b2b-quotes.quotes-table.title\": \"自分の見積り\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"新しい見積り\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"見積りが見つかりません。\",\n \"store/b2b-quotes.quotes-table.details.label\": \"詳細\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"参照名\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"小計\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"作成者\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"作成日\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"有効期限\",\n \"store/b2b-quotes.quotes-table.status.title\": \"ステータス\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"前回のアップデート\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"組織\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"コストセンター\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"組織およびコストセンター\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"組織を検索…\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"コストセンターを検索…\",\n \"store/b2b-quotes.quotes-table.showRows\": \"表示行数\",\n \"store/b2b-quotes.quotes-table.of\": \"/\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"検索\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"表示するフィールドの切り替え\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"すべて表示\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"すべて非表示\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"フィルタをクリア\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"ステータス\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"すべて\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"なし\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"いずれか\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"が次の場合\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"含める\",\n \"store/b2b-quotes.quote-details.title\": \"見積り詳細\",\n \"store/b2b-quotes.quote-details.decline\": \"却下\",\n \"store/b2b-quotes.quote-details.save\": \"見積りの保存\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"営業担当に提出\",\n \"store/b2b-quotes.quote-details.use-quote\": \"見積りを使用\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"小計\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"有効期限\",\n \"store/b2b-quotes.quote-details.status.title\": \"ステータス\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"画像\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"参照コード\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"名前\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"数量\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"価格\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"合計\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"割引率を適用\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"見積り小計に割引率を適用します。この操作により個々の SKU 価格に加えられた変更は上書きされることにご注意ください。\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"手入力できる最大の割引よりも高い割引をプロモーションがすでに適用しているため、割引率は無効です。\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"{maxDiscount}% を超える手入力の割引は自動的に却下されます。\",\n \"store/b2b-quotes.quote-details.products.title\": \"商品 ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"見積書を作成した後でメモを追加できます。\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"更新履歴\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{date} に {email} ({role}) によって {index, plural, =0{作成済み}other{更新済み}} となり、ステータスは {status} になりました\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"備考:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"備考の追加\",\n \"store/b2b-quotes.quote-details.update-success\": \"見積りの保存が完了しました\",\n \"store/b2b-quotes.quote-details.update-error\": \"見積りの保存中にエラーが発生しました。詳細はコンソールをご確認ください。\",\n \"store/b2b-quotes.quote-details.use-error\": \"見積りの使用中にエラーが発生しました。詳細はコンソールをご確認ください。\",\n \"store/b2b-quotes.quote-details.discount-error\": \"一部の割引が許容されている範囲を超えています\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"割引率\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"元の小計\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"元の価格\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"見積り価格\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"見積り小計\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"有効期限の変更\",\n \"store/b2b-quotes.quote-locking.title\": \"使用中の見積り\",\n \"store/b2b-quotes.quote-locking.message\": \"現在カートに見積りの項目が含まれているため、変更できません。チェックアウトページに戻るか、またはカートを空にし、ブラウジングを続けてください。\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"チェックアウトへ戻る\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"カートを空にする\",\n \"store/b2b-quotes.quote-status.ready\": \"準備完了\",\n \"store/b2b-quotes.quote-status.placed\": \"送信済み\",\n \"store/b2b-quotes.quote-status.revised\": \"訂正済み\",\n \"store/b2b-quotes.quote-status.pending\": \"保留中\",\n \"store/b2b-quotes.quote-status.expired\": \"期限切れ\",\n \"store/b2b-quotes.quote-status.declined\": \"却下済み\"\n}\n\n```"
}
] |
code_b2b-quotes_08a5fdf8
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/de.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"B2B-Angebote\",\n \"admin/b2b-quotes.navigation.keywords\": \"B2B, Angebot, Angebote, Warenkorb, Warenkörbe, Ablaufdatum\",\n \"admin/b2b-quotes.settings.title\": \"B2B Angebotseinstellungen\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"Speichern der Einstellungen fehlgeschlagen\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"Einstellungen erfolgreich gespeichert\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"Standard Ablauffrist (in Tagen) für Angebote und gespeicherte Warenkörbe\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"Angebotsverwaltung für den Marktplatz\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"Konfigurieren Sie, wie Angebote auf dem Marktplatz verwaltet werden.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"Wer ist für die Verwaltung der Angebote verantwortlich?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"Marktplatz\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"Nur der Hauptmarktplatz verwaltet Angebote.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"Verkäufer\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"Verkäufer verwalten Angebote für ihre eigenen Produkte und können sich entscheiden, Angebote nicht zu berücksichtigen.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"Einstellungen speichern\",\n \"store/b2b-quotes.myAccountLink\": \"Angebote und gespeicherte Warenkörbe\",\n \"store/b2b-quotes.create.title\": \"Angebot erstellen\",\n \"store/b2b-quotes.create.nameLabel\": \"Name\",\n \"store/b2b-quotes.create.descriptionLabel\": \"Anmerkungen\",\n \"store/b2b-quotes.create.success\": \"Angebot erfolgreich gespeichert\",\n \"store/b2b-quotes.create.error\": \"Fehler beim Speichern des Angebots\",\n \"store/b2b-quotes.create.required\": \"Geben Sie einen Namen für Ihr Angebot ein\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"Angebotsname\",\n \"store/b2b-quotes.create.empty-state-label\": \"Um ein Angebot zu erstellen, fügen Sie Artikel in Ihren Warenkorb hinzu.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{Zeichen übrig}=500{500 Zeichen Grenze erreicht}other{Zeichen übrig}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"Für später speichern\",\n \"store/b2b-quotes.create.button.request-quote\": \"Angebot anfordern\",\n \"store/b2b-quotes.back\": \"Zurück\",\n \"store/b2b-quotes.error.notAuthenticated\": \"Bitte melden Sie sich an, um diesen Inhalt zu sehen.\",\n \"store/b2b-quotes.error.notPermitted\": \"Sie haben nicht die erforderlichen Berechtigungen, um diesen Inhalt zu sehen.\",\n \"store/b2b-quotes.quotes-table.title\": \"Meine Angebote\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"Neues Angebot anfordern\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"Keine Angebote gefunden.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"Details\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"Ref. Name\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"Zwischensumme\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"Erstellt von\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"Erstellt am\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"Fälligkeitsdatum\",\n \"store/b2b-quotes.quotes-table.status.title\": \"Status\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"Letztes Update\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"Organisation\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"Kostenstelle\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"Org. & Kostenstelle\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"Organisationen suchen...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"Kostenstellen suchen...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"Zeilen einblenden\",\n \"store/b2b-quotes.quotes-table.of\": \"von\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"Suchen\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"Sichtbare Felder umschalten\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"Alle anzeigen\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"Alle ausblenden\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"Filter zurücksetzen\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"Status\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"Alle\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"Keine\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"Alle\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"ist\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"enthält\",\n \"store/b2b-quotes.quote-details.title\": \"Angebot Details\",\n \"store/b2b-quotes.quote-details.decline\": \"Ablehnen\",\n \"store/b2b-quotes.quote-details.save\": \"Angebot speichern\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"An den Außendienstmitarbeiter senden\",\n \"store/b2b-quotes.quote-details.use-quote\": \"Angebot verwenden\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"Zwischensumme\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"Fälligkeitsdatum\",\n \"store/b2b-quotes.quote-details.status.title\": \"Status\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"Bild\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"Ref. Code\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"Name\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"Menge\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"Preis\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"Gesamt\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"Prozentsatz-Rabatt anwenden\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"Anwendung eines prozentualen Rabatts auf die Zwischensumme des Angebots. Hinweis: Dadurch werden alle Änderungen an einzelnen SKU-Preisen überschrieben.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"Der prozentuale Rabatt ist nicht verfügbar, da eine Werbeaktion bereits einen höheren Rabatt als den maximalen manuellen Rabatt gewährt.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"Manuelle Rabatte über {maxDiscount}% werden automatisch verweigert.\",\n \"store/b2b-quotes.quote-details.products.title\": \"Produkte ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"Notizen können nach der Erstellung des Angebots hinzugefügt werden.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"Update-Verlauf\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, =0{Erstellt}other{Aktualisiert}} am {date} von {email} ({role}) mit dem Status {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"Anmerkungen:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"Notiz hinzufügen\",\n \"store/b2b-quotes.quote-details.update-success\": \"Angebot erfolgreich gespeichert\",\n \"store/b2b-quotes.quote-details.update-error\": \"Fehler beim Speichern des Angebots. Weitere Details finden Sie in der Konsole.\",\n \"store/b2b-quotes.quote-details.use-error\": \"Fehler beim Nutzen des Angebots. Weitere Details finden Sie in der Konsole.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"Einige Rabatte sind höher als zulässig\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"Prozentsatz Rabatt\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"Original Zwischensumme\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"Originalpreis\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"Kostenvoranschlag\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"Zwischensumme Kostenvoranschlag\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"Ablaufdatum ändern\",\n \"store/b2b-quotes.quote-locking.title\": \"Angebot in Verwendung\",\n \"store/b2b-quotes.quote-locking.message\": \"Ihr Warenkorb enthält derzeit Artikel aus einem Angebot und kann nicht geändert werden. Sie können entweder zur Kasse zurückkehren oder Ihren Warenkorb leeren, um weiter zu stöbern.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"Zurück zur Kasse\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"Warenkorb leeren\",\n \"store/b2b-quotes.quote-status.ready\": \"Bereit\",\n \"store/b2b-quotes.quote-status.placed\": \"Bestellt\",\n \"store/b2b-quotes.quote-status.revised\": \"Überarbeitet\",\n \"store/b2b-quotes.quote-status.pending\": \"Ausstehend\",\n \"store/b2b-quotes.quote-status.expired\": \"abgelaufen\",\n \"store/b2b-quotes.quote-status.declined\": \"Abgelehnt\"\n}\n\n```"
}
] |
code_b2b-quotes_0fb78c46
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/ru.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"Корпоративные расценки\",\n \"admin/b2b-quotes.navigation.keywords\": \"корпоративный, цена, расценки, корзина, корзины, истечение срока\",\n \"admin/b2b-quotes.settings.title\": \"Настройки корпоративных расценок\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"Не удалось сохранить настройки\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"Настройки сохранены\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"Стандартный срок истечения (дней) для расценок и сохранённых корзин\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"Управление предложениями для маркетплейса\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"Настройте, как управляются предложения на маркетплейсе.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"Кто отвечает за управление предложениями?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"Маркетплейс\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"Только основной маркетплейс управляет предложениями.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"Продавцы\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"Продавцы управляют предложениями для своих товаров и могут выбрать, не учитывать их.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"Сохранить настройки\",\n \"store/b2b-quotes.myAccountLink\": \"Расценки и сохранённые корзины\",\n \"store/b2b-quotes.create.title\": \"Создать расценки\",\n \"store/b2b-quotes.create.nameLabel\": \"Название\",\n \"store/b2b-quotes.create.descriptionLabel\": \"Примечания\",\n \"store/b2b-quotes.create.success\": \"Расценки сохранены\",\n \"store/b2b-quotes.create.error\": \"Ошибка сохранения расценок\",\n \"store/b2b-quotes.create.required\": \"Введите название ваших расценок\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"Название расценок\",\n \"store/b2b-quotes.create.empty-state-label\": \"Для создания расценок начните добавлять товары в корзину.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{симв. до лимита}=500{Вы достигли лимита в 500 символов}other{симв. до лимита}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"Сохранить на потом\",\n \"store/b2b-quotes.create.button.request-quote\": \"Запрос цены\",\n \"store/b2b-quotes.back\": \"Назад\",\n \"store/b2b-quotes.error.notAuthenticated\": \"Чтобы просмотреть этот контент, войдите в систему.\",\n \"store/b2b-quotes.error.notPermitted\": \"У вас нет необходимых разрешений для просмотра этого контента.\",\n \"store/b2b-quotes.quotes-table.title\": \"Мои расценки\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"Новые расценки\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"Расценки не найдены.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"Подробности\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"Название для справки\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"Промежуточный итог\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"Кем создано\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"Когда создано\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"Окончание срока действия\",\n \"store/b2b-quotes.quotes-table.status.title\": \"Статус\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"Последнее изменение\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"Организация\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"Финансовый центр\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"Организация и финансовый центр\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"Поиск организаций...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"Поиск финансовых центров...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"Показать строки\",\n \"store/b2b-quotes.quotes-table.of\": \"из\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"Поиск\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"Переключение видимых полей\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"Показать все\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"Скрыть все\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"Сбросить фильтры\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"Статус\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"Все\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"Ни одного\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"Любой\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"=\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"включает\",\n \"store/b2b-quotes.quote-details.title\": \"Информация о расценках\",\n \"store/b2b-quotes.quote-details.decline\": \"Отклонить\",\n \"store/b2b-quotes.quote-details.save\": \"Сохранить расценки\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"Отправить менеджеру по продажам\",\n \"store/b2b-quotes.quote-details.use-quote\": \"Использовать расценки\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"Промежуточный итог\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"Окончание срока действия\",\n \"store/b2b-quotes.quote-details.status.title\": \"Статус\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"Изображение\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"Код для справки\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"Название\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"Количество\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"Цена\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"Всего\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"Применить процентную скидку\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"К промежуточному итогу расценок будет применена процентная скидка. Внимание: это отменит изменения, внесённые по отдельным артикулам.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"Процентная скидка недоступна, поскольку уже действует акционная скидка выше максимальной ручной скидки.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"Введённые вручную скидки, превышающие {maxDiscount} %, будут автоматически отклонены.\",\n \"store/b2b-quotes.quote-details.products.title\": \"Продукты ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"Примечания можно добавлять после создания цитат.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"Журнал обновлений\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, =0{Создано}other{Обновлено}} {date} пользователем {email} ({role}) со статусом {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"Примечания:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"Добавить примечание\",\n \"store/b2b-quotes.quote-details.update-success\": \"Расценки сохранены\",\n \"store/b2b-quotes.quote-details.update-error\": \"Ошибка сохранения расценок. Подробная информация доступна на консоли.\",\n \"store/b2b-quotes.quote-details.use-error\": \"Ошибка использования расценок. Подробная информация доступна на консоли.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"Некоторые скидки превышают допустимые\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"Процентная скидка\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"Первоначальный промежуточный итог\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"Первоначальная цена\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"Цена в расценках\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"Промежуточный итог расценок\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"Изменить срок действия\",\n \"store/b2b-quotes.quote-locking.title\": \"Используются расценки\",\n \"store/b2b-quotes.quote-locking.message\": \"Ваша корзина содержит товары, указанные в расценках, и не может быть изменена. Вы можете вернуться на страницу оформления заказа или очистить корзину и продолжить поиск товаров.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"Вернуться к оформлению заказа\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"Очистить корзину\",\n \"store/b2b-quotes.quote-status.ready\": \"Готово\",\n \"store/b2b-quotes.quote-status.placed\": \"Размещено\",\n \"store/b2b-quotes.quote-status.revised\": \"Пересмотрено\",\n \"store/b2b-quotes.quote-status.pending\": \"На рассмотрении\",\n \"store/b2b-quotes.quote-status.expired\": \"Просрочено\",\n \"store/b2b-quotes.quote-status.declined\": \"Отклонено\"\n}\n\n```"
}
] |
code_b2b-quotes_6488b2ce
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/pl.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"Wyceny B2B\",\n \"admin/b2b-quotes.navigation.keywords\": \"b2b, wycena, wyceny, koszyk, koszyki, termin ważności\",\n \"admin/b2b-quotes.settings.title\": \"Ustawienia wyceny B2B\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"Nie udało się zapisać ustawień\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"Ustawienia zapisane pomyślnie\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"Domyślny okres ważności (w dniach) dla wycen i zapisanych koszyków\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"Zarządzanie ofertami dla rynku\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"Skonfiguruj, jak oferty są zarządzane na rynku.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"Kto jest odpowiedzialny za zarządzanie ofertami?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"Rynek\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"Tylko główny rynek zarządza ofertami.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"Sprzedawcy\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"Sprzedawcy zarządzają ofertami swoich produktów i mogą zdecydować o ich pominięciu.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"Zapisz ustawienia\",\n \"store/b2b-quotes.myAccountLink\": \"Wyceny i zapisane koszyki\",\n \"store/b2b-quotes.create.title\": \"Utwórz wycenę\",\n \"store/b2b-quotes.create.nameLabel\": \"Nazwa\",\n \"store/b2b-quotes.create.descriptionLabel\": \"Uwagi\",\n \"store/b2b-quotes.create.success\": \"Wycena zapisana pomyślnie\",\n \"store/b2b-quotes.create.error\": \"Błąd podczas zapisywania wyceny\",\n \"store/b2b-quotes.create.required\": \"Wprowadź nazwę dla swojej wyceny\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"Nazwa wyceny\",\n \"store/b2b-quotes.create.empty-state-label\": \"Aby utworzyć wycenę, zacznij dodawać artykuły do koszyka.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{pozostało znaków}=500{500-osiągnięto limit znaków}other{pozostało znaków}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"Zapisz na później\",\n \"store/b2b-quotes.create.button.request-quote\": \"Poproś o wycenę\",\n \"store/b2b-quotes.back\": \"Wstecz\",\n \"store/b2b-quotes.error.notAuthenticated\": \"Zaloguj się, aby zobaczyć tę zawartość.\",\n \"store/b2b-quotes.error.notPermitted\": \"Nie masz uprawnień niezbędnych do przeglądania tej zawartości.\",\n \"store/b2b-quotes.quotes-table.title\": \"Moje wyceny\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"Nowa wycena\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"Nie znaleziono wycen.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"Szczegóły\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"Nazwa odnies.\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"Podsuma\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"Utworzone przez\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"Utworzono dnia\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"Data wygaśnięcia\",\n \"store/b2b-quotes.quotes-table.status.title\": \"Status\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"Ostatnia aktualizacja\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"Organizacja\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"Centrum kosztów\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"Organiz. i centrum kosztów\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"Szukaj organizacji...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"Szukaj centrów kosztów...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"Pokaż wiersze\",\n \"store/b2b-quotes.quotes-table.of\": \"z\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"Szukaj\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"Przełącz widoczne pola\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"Pokaż wszystkie\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"Ukryj wszystkie\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"Wyczyść filtry\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"Status\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"Wszystkie\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"Brak\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"Dowolny\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"jest\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"zawiera\",\n \"store/b2b-quotes.quote-details.title\": \"Szczegóły wyceny\",\n \"store/b2b-quotes.quote-details.decline\": \"Odrzuć\",\n \"store/b2b-quotes.quote-details.save\": \"Zapisz wycenę\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"Prześlij do handlowca\",\n \"store/b2b-quotes.quote-details.use-quote\": \"Użyj wyceny\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"Podsuma\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"Data wygaśnięcia\",\n \"store/b2b-quotes.quote-details.status.title\": \"Status\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"Obraz\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"Kod odnies.\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"Nazwa\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"Ilość\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"Cena\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"Ogółem\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"Zastosuj rabat procentowy\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"Zastosuj rabat procentowy do podsumy wyceny. Uwaga: zastąpi to wszelkie zmiany wprowadzone w poszczególnych cenach SKU.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"Rabat procentowy nie jest dostępny, ponieważ promocja już wykorzystuje rabat wyższy niż maksymalna zniżka ręczna.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"Zniżki ręczne powyżej {maxDiscount}% zostaną automatycznie odrzucone.\",\n \"store/b2b-quotes.quote-details.products.title\": \"Produkty ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"Po utworzeniu ofert można dodać notatki.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"Historia zmian\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, =0{Utworzono}other{Zaktualizowano}} dnia {date} przez {email} ({role}) ze statusem {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"Uwagi:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"Dodaj uwagę\",\n \"store/b2b-quotes.quote-details.update-success\": \"Wycena zapisana pomyślnie\",\n \"store/b2b-quotes.quote-details.update-error\": \"Błąd podczas zapisywania wyceny. Więcej szczegółów znajdziesz w konsoli.\",\n \"store/b2b-quotes.quote-details.use-error\": \"Błąd podczas używania wyceny. Więcej szczegółów znajdziesz w konsoli.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"Niektóre rabaty są wyższe niż dozwolone\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"Procent rabatu\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"Oryginalna podsuma\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"Oryginalna cena\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"Podana cena\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"Przytoczona podsuma\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"Zmień datę wygaśnięcia\",\n \"store/b2b-quotes.quote-locking.title\": \"Wycena w użyciu\",\n \"store/b2b-quotes.quote-locking.message\": \"Twój koszyk zawiera obecnie przedmioty z wyceny i nie można go zmodyfikować. Możesz powrócić do strony kasy lub wyczyścić koszyk, aby kontynuować przeglądanie.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"Powrót do kasy\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"Wyczyść koszyk\",\n \"store/b2b-quotes.quote-status.ready\": \"Gotowe\",\n \"store/b2b-quotes.quote-status.placed\": \"Złożone\",\n \"store/b2b-quotes.quote-status.revised\": \"Skorygowane\",\n \"store/b2b-quotes.quote-status.pending\": \"Oczekujące\",\n \"store/b2b-quotes.quote-status.expired\": \"Wygasło\",\n \"store/b2b-quotes.quote-status.declined\": \"Odrzucone\"\n}\n\n```"
}
] |
code_b2b-quotes_bdd53d20
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/uk.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"Корпоративні розцінки\",\n \"admin/b2b-quotes.navigation.keywords\": \"корпоративний, ціна, розцінки, кошик, кошики, термін дії\",\n \"admin/b2b-quotes.settings.title\": \"Налаштування корпоративних розцінок\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"Не вдалося зберегти налаштування\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"Налаштування збережено\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"Стандартний строк дії (у днях) розцінок і збережених кошиків\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"EТермін дії цінових пропозицій і збережених кошиків\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"Управління пропозиціями для маркетплейсу\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"Налаштуйте, як пропозиції керуються на маркетплейсі.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"Хто відповідає за управління пропозиціями?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"Маркетплейс\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"Тільки головний маркетплейс керує пропозиціями.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"Продавці\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"Продавці керують пропозиціями для своїх товарів і можуть вирішити не враховувати їх.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"Зберегти налаштування\",\n \"store/b2b-quotes.myAccountLink\": \"Розцінки та збережені кошики\",\n \"store/b2b-quotes.create.title\": \"Створити розцінки\",\n \"store/b2b-quotes.create.nameLabel\": \"Назва\",\n \"store/b2b-quotes.create.descriptionLabel\": \"Примітки\",\n \"store/b2b-quotes.create.success\": \"Розцінки збережено\",\n \"store/b2b-quotes.create.error\": \"Помилка збереження розцінок\",\n \"store/b2b-quotes.create.required\": \"Введіть назву розцінок\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"Назва розцінок\",\n \"store/b2b-quotes.create.empty-state-label\": \"Для створення розцінок почніть додавати товари до кошика.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{симв. до ліміту}=500{500-символьний ліміт вичерпався}other{симв. до ліміту}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"Зберегти на потім\",\n \"store/b2b-quotes.create.button.request-quote\": \"Запит ціни\",\n \"store/b2b-quotes.back\": \"Назад\",\n \"store/b2b-quotes.error.notAuthenticated\": \"Щоб переглянути цей контент, увійдіть.\",\n \"store/b2b-quotes.error.notPermitted\": \"Ви не маєте права переглядати цей контент.\",\n \"store/b2b-quotes.quotes-table.title\": \"Мої розцінки\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"Нові розцінки\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"Розцінок не знайдено.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"Детальніше\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"Назва для довідки\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"Проміжний підсумок\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"Хто створив\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"Коли створено\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"Термін дії\",\n \"store/b2b-quotes.quotes-table.status.title\": \"Статус\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"Остання зміна\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"Організація\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"Фінансовий центр\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"Організація і фінансовий центр\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"Пошук організацій...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"Пошук фінансових центрів...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"Показати рядки\",\n \"store/b2b-quotes.quotes-table.of\": \"з\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"Пошук\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"Перемикання видимих полів\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"Показати всі\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"Приховати всі\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"Скинути фільтри\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"Статус\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"Усі\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"Жодного\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"Будь-який\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"=\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"містить\",\n \"store/b2b-quotes.quote-details.title\": \"Інформація про розцінки\",\n \"store/b2b-quotes.quote-details.decline\": \"Відхилити\",\n \"store/b2b-quotes.quote-details.save\": \"Зберегти розцінки\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"Відправити менеджеру з продажів\",\n \"store/b2b-quotes.quote-details.use-quote\": \"Використати розцінки\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"Проміжний підсумок\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"Термін дії\",\n \"store/b2b-quotes.quote-details.status.title\": \"Статус\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"Зображення\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"Код для довідки\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"Назва\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"Кількість\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"Ціна\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"Разом\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"Застосувати відсоткову знижку\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"До проміжного підсумку розцінок застосується відсоткова знижка. Зверніть увагу: це скасує зміни, внесені в окремі артикули.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"Відсоткова знижка недоступна, бо вже діє акційна знижка, вища за максимальну ручну знижку.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"Ручні знижки понад {maxDiscount}% автоматично відхиляються.\",\n \"store/b2b-quotes.quote-details.products.title\": \"Продукти ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"Примітки можна додавати після створення розцінки.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"Журнал оновлень\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, one {} few {Оновлено} many {Оновлено}=0{Створено}other{Оновлено}} на {date} на {email} ({role}) зі статусом {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"Примітки:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"Додати примітку\",\n \"store/b2b-quotes.quote-details.update-success\": \"Розцінки збережено\",\n \"store/b2b-quotes.quote-details.update-error\": \"Помилка збереження розцінок. Докладніша інформація доступна на консолі.\",\n \"store/b2b-quotes.quote-details.use-error\": \"Помилка використання розцінок. Докладніша інформація доступна на консолі.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"Деякі знижки перевищують допустимі\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"Відсоткова знижка\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"Початковий проміжний підсумок\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"Початкова ціна\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"Ціна в розцінках\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"Проміжний підсумок у розцінках\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"Змінити термін дії\",\n \"store/b2b-quotes.quote-locking.title\": \"Використовуються розцінки\",\n \"store/b2b-quotes.quote-locking.message\": \"Ваш кошик містить товари, вказані в розцінках, і змінити його не можна. Ви можете повернутися на сторінку оплати або очистити кошик і продовжити пошук товарів.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"Повернутися до оплати\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"Очистити кошик\",\n \"store/b2b-quotes.quote-status.ready\": \"Готово\",\n \"store/b2b-quotes.quote-status.placed\": \"Розміщено\",\n \"store/b2b-quotes.quote-status.revised\": \"Виправлено\",\n \"store/b2b-quotes.quote-status.pending\": \"На розгляді\",\n \"store/b2b-quotes.quote-status.expired\": \"Прострочено\",\n \"store/b2b-quotes.quote-status.declined\": \"Відхилено\"\n}\n\n```"
}
] |
code_b2b-quotes_5140a967
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/fi.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"B2B-tarjoukset\",\n \"admin/b2b-quotes.navigation.keywords\": \"b2b, tarjous, tarjoukset, ostoskori, ostoskorit, vanheneminen\",\n \"admin/b2b-quotes.settings.title\": \"B2B-tarjousasetukset\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"Asetusten tallennus epäonnistui\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"Asetukset tallennettu\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"Oletusvanhenemisaika (päivinä) tarjouksille ja tallennetuille ostoskoreille\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"Tarjousten hallinta markkinapaikalle\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"Määritä, kuinka tarjouksia hallitaan markkinapaikalla.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"Kuka on vastuussa tarjousten hallinnasta?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"Markkinapaikka\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"Vain päämarkkinapaikka hallitsee tarjouksia.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"Myyjät\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"Myyjät hallitsevat tarjouksia omille tuotteilleen ja voivat päättää olla laskematta tarjouksia.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"Tallenna asetukset\",\n \"store/b2b-quotes.myAccountLink\": \"Tarjoukset ja tallennetut ostoskorit\",\n \"store/b2b-quotes.create.title\": \"Luo tarjous\",\n \"store/b2b-quotes.create.nameLabel\": \"Nimi\",\n \"store/b2b-quotes.create.descriptionLabel\": \"Muistiinpanot\",\n \"store/b2b-quotes.create.success\": \"Tarjous tallennettu\",\n \"store/b2b-quotes.create.error\": \"Virhe lainausta tallennettaessa\",\n \"store/b2b-quotes.create.required\": \"Anna tarjoukselle nimi\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"Tarjouksen nimi\",\n \"store/b2b-quotes.create.empty-state-label\": \"Luodaksesi tarjouksen ala lisätä tuotteita ostoskoriisi.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{merkkiä jäljellä}=500{500 merkin raja saavutettu}other{merkkiä jäljellä}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"Tallenna myöhemmäksi\",\n \"store/b2b-quotes.create.button.request-quote\": \"Pyydä tarjous\",\n \"store/b2b-quotes.back\": \"Takaisin\",\n \"store/b2b-quotes.error.notAuthenticated\": \"Kirjaudu sisään tarkastellaksesi tätä sisältöä.\",\n \"store/b2b-quotes.error.notPermitted\": \"Sinulla ei ole tarvittavia oikeuksia tämän sisällön tarkasteluun.\",\n \"store/b2b-quotes.quotes-table.title\": \"Tarjoukseni\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"Uusi tarjous\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"Tarjouksia ei löytynyt.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"Tiedot\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"Viitenimi\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"Välisumma\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"Tekijä\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"Luotu\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"Erääntymisajankohta\",\n \"store/b2b-quotes.quotes-table.status.title\": \"Tila\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"Viimeisin päivitys\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"Organisaatio\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"Kustannuspaikka\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"Organisaatio ja kustannuspaikka\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"Hae organisaatioita...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"Hae kustannuspaikkoja...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"Näytä rivit\",\n \"store/b2b-quotes.quotes-table.of\": \"/\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"Hae\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"Näytä näkyvät kentät\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"Näytä kaikki\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"Piilota kaikki\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"Tyhjennä suodattimet\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"Tila\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"Kaikki\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"Ei mitään\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"Mikä tahansa\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"on\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"sisältää\",\n \"store/b2b-quotes.quote-details.title\": \"Tarjouksen tiedot\",\n \"store/b2b-quotes.quote-details.decline\": \"Hylkää\",\n \"store/b2b-quotes.quote-details.save\": \"Tallenna tarjous\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"Lähetä myyntiedustajalle\",\n \"store/b2b-quotes.quote-details.use-quote\": \"Käytä tarjousta\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"Välisumma\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"Erääntymisajankohta\",\n \"store/b2b-quotes.quote-details.status.title\": \"Tila\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"Kuva\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"Viitekoodi\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"Nimi\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"Lukumäärä\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"Hinta\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"Yhteensä\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"Käytä prosenttialennusta\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"Käytä prosenttialennusta tarjouksen välisummalle. Huomautus: tämä ohittaa yksittäisten myyntiyksiköiden hintoihin tehdyt muutokset.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"Prosenttialennus on pois käytöstä, koska kampanja lisää jo manuaalista enimmäisalennusta suuremman alennuksen.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"Yli {maxDiscount} %:n manuaaliset alennukset hylätään automaattisesti.\",\n \"store/b2b-quotes.quote-details.products.title\": \"Tuotteet ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"Huomautuksia voidaan lisätä lainausten luomisen jälkeen.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"Päivityshistoria\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, =0{Luotu}other{Päivitetty}} {date} {email} toimesta roolilla ({role}) tilalla {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"Muistiinpanot:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"Lisää huomautus\",\n \"store/b2b-quotes.quote-details.update-success\": \"Tarjous tallennettu\",\n \"store/b2b-quotes.quote-details.update-error\": \"Virhe tallennettaessa tarjousta. Katso lisätietoja konsolista.\",\n \"store/b2b-quotes.quote-details.use-error\": \"Virhe tarjousta käytettäessä. Katso lisätietoja konsolista.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"Jotkin alennukset ovat sallittua suurempia\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"Prosenttialennus\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"Alkuperäinen välisumma\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"Alkuperäinen hinta\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"Tarjouksen hinta\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"Tarjouksen välisumma\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"Vaihda viimeinen voimassaolopäivä\",\n \"store/b2b-quotes.quote-locking.title\": \"Tarjous käytössä\",\n \"store/b2b-quotes.quote-locking.message\": \"Ostoskorisi sisältää tällä hetkellä tuotteita tarjouksesta, eikä sitä voi muokata. Voit joko palata kassasivulle tai tyhjentää ostoskorin, jos haluat jatkaa selaamista.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"Palaa kassalle\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"Tyhjennä ostoskori\",\n \"store/b2b-quotes.quote-status.ready\": \"Valmis\",\n \"store/b2b-quotes.quote-status.placed\": \"Asetettu\",\n \"store/b2b-quotes.quote-status.revised\": \"Tarkistettu\",\n \"store/b2b-quotes.quote-status.pending\": \"Odottaa\",\n \"store/b2b-quotes.quote-status.expired\": \"Vanhentunut\",\n \"store/b2b-quotes.quote-status.declined\": \"Hylätty\"\n}\n\n```"
}
] |
code_b2b-quotes_d1210718
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/sk.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"Ponuky B2B\",\n \"admin/b2b-quotes.navigation.keywords\": \"b2b, ponuka, ponuky, košík, košíky, vypršanie lehoty\",\n \"admin/b2b-quotes.settings.title\": \"Nastavenia ponuky B2B\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"Nepodarilo sa uložiť nastavenia\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"Nastavenia boli úspešne uložené\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"Predvolená doba platnosti (v dňoch) pre cenové ponuky a uložené košíky\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"Správa ponúk pre trh\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"Nakonfigurujte, ako sa ponuky spravujú na trhu.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"Kto je zodpovedný za správu ponúk?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"Trh\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"Ponuky spravuje iba hlavný trh.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"Predajcovia\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"Predajcovia spravujú ponuky pre svoje produkty a môžu sa rozhodnúť ich nezapočítavať.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"Uložiť nastavenia\",\n \"store/b2b-quotes.myAccountLink\": \"Ponuky a uložené košíky\",\n \"store/b2b-quotes.create.title\": \"Vytvoriť ponuku\",\n \"store/b2b-quotes.create.nameLabel\": \"Názov\",\n \"store/b2b-quotes.create.descriptionLabel\": \"Poznámky\",\n \"store/b2b-quotes.create.success\": \"Ponuka bola úspešne uložená\",\n \"store/b2b-quotes.create.error\": \"Pri ukladaní ponuky došlo k chybe\",\n \"store/b2b-quotes.create.required\": \"Zadajte názov cenovej ponuky\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"Názov ponuky\",\n \"store/b2b-quotes.create.empty-state-label\": \"Ak chcete vytvoriť cenovú ponuku, začnite pridávať položky do košíka.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{zostáva znak}=500{Bol dosiahnutý limit 500 znakov}other{zostáva znak}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"Uložiť na neskôr\",\n \"store/b2b-quotes.create.button.request-quote\": \"Požiadať o ponuku\",\n \"store/b2b-quotes.back\": \"Späť\",\n \"store/b2b-quotes.error.notAuthenticated\": \"Ak chcete zobraziť tento obsah, prihláste sa.\",\n \"store/b2b-quotes.error.notPermitted\": \"Na zobrazenie tohto obsahu nemáte potrebné povolenia.\",\n \"store/b2b-quotes.quotes-table.title\": \"Moje ponuky\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"Nová ponuka\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"Nenašli sa žiadne ponuky.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"Podrobnosti\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"Ref. názov\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"Medzisúčet\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"Vytvoril\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"Vytvorené dňa\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"Vypršanie platnosti\",\n \"store/b2b-quotes.quotes-table.status.title\": \"Stav\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"Posledná aktualizácia\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"Organizácia\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"Nákladové stredisko\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"Organizácia a nákladové stredisko\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"Vyhľadávať v organizáciách…\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"Vyhľadávať v nákladových strediskách…\",\n \"store/b2b-quotes.quotes-table.showRows\": \"Zobraziť riadky\",\n \"store/b2b-quotes.quotes-table.of\": \"z\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"Hľadať\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"Prepnúť viditeľné polia\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"Zobraziť všetko\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"Skryť všetko\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"Vymazať filtre\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"Stav\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"Všetko\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"Žiadne\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"Všetky\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"je\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"zahŕňa\",\n \"store/b2b-quotes.quote-details.title\": \"Podrobnosti ponuky\",\n \"store/b2b-quotes.quote-details.decline\": \"Odmietnuť\",\n \"store/b2b-quotes.quote-details.save\": \"Uložiť ponuku\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"Odoslať obchodnému zástupcovi\",\n \"store/b2b-quotes.quote-details.use-quote\": \"Použiť ponuku\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"Medzisúčet\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"Vypršanie platnosti\",\n \"store/b2b-quotes.quote-details.status.title\": \"Stav\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"Obrázok\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"Ref. kód\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"Názov\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"Množstvo\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"Cena\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"Celkom\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"Použiť percentuálnu zľavu\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"Použite percentuálnu zľavu na medzisúčet cenovej ponuky. Pamätajte, že táto akcia prepíše všetky zmeny vykonané v jednotlivých cenách SKU.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"Percentuálna zľava nie je k dispozícii, pretože promo akcia už uplatňuje zľavu vyššiu, než je maximálna manuálna zľava.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"Manuálne zľavy nad {maxDiscount} % budú automaticky odmietnuté.\",\n \"store/b2b-quotes.quote-details.products.title\": \"Produkty ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"Poznámky je možné pridať po vytvorení úvodzoviek.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"História aktualizácií\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, =0{vytvorené}other{aktualizované}} dňa {date} používateľom {email} ({role}) so stavom {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"Poznámky:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"Pridať poznámku\",\n \"store/b2b-quotes.quote-details.update-success\": \"Ponuka bola úspešne uložená\",\n \"store/b2b-quotes.quote-details.update-error\": \"Pri ukladaní cenovej ponuky sa vyskytla chyba. Ďalšie podrobnosti nájdete v konzole.\",\n \"store/b2b-quotes.quote-details.use-error\": \"Pri používaní cenovej ponuky sa vyskytla chyba. Ďalšie podrobnosti nájdete v konzole.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"Niektoré zľavy sú vyššie, než je povolené\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"Percentuálna zľava\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"Pôvodný medzisúčet\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"Pôvodná cena\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"Cena v ponuke\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"Medzisúčet v ponuke\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"Zmena dátumu platnosti\",\n \"store/b2b-quotes.quote-locking.title\": \"Cenová ponuka sa používa\",\n \"store/b2b-quotes.quote-locking.message\": \"Váš košík momentálne obsahuje položky z cenovej ponuky a nie je možné ho upraviť. Môžete sa vrátiť na stránku pokladne alebo vymazať košík a pokračovať v prehliadaní.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"Späť do pokladne\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"Vymazať košík\",\n \"store/b2b-quotes.quote-status.ready\": \"Pripravené\",\n \"store/b2b-quotes.quote-status.placed\": \"Odoslané\",\n \"store/b2b-quotes.quote-status.revised\": \"Posúdené\",\n \"store/b2b-quotes.quote-status.pending\": \"Čakajúce\",\n \"store/b2b-quotes.quote-status.expired\": \"Platnosť vypršala\",\n \"store/b2b-quotes.quote-status.declined\": \"Odmietnuté\"\n}\n\n```"
}
] |
code_b2b-quotes_dc0a7b9e
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/pt.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"Cotações B2B\",\n \"admin/b2b-quotes.navigation.keywords\": \"b2b, cotação, cotações, carrinho, carrinhos, data de expiração\",\n \"admin/b2b-quotes.settings.title\": \"Configurações de cotação B2B\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"Erro ao salvar configurações\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"Configurações salvas com sucesso\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"Período de expiração padrão (em dias) para cotações e carrinhos salvos\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"Gerenciamento de Cotações para o Marketplace\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"Configure como as cotações são gerenciadas no marketplace.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"Quem é responsável pelo gerenciamento das cotações?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"Marketplace\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"Somente o marketplace principal gerencia as cotações.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"Vendedores\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"Os vendedores gerenciam as cotações de seus próprios produtos e podem optar por não contabilizá-las.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"Salvar configurações\",\n \"store/b2b-quotes.myAccountLink\": \"Cotações e carrinhos salvos\",\n \"store/b2b-quotes.create.title\": \"Criar cotação\",\n \"store/b2b-quotes.create.nameLabel\": \"Nome\",\n \"store/b2b-quotes.create.descriptionLabel\": \"Observações\",\n \"store/b2b-quotes.create.success\": \"Cotação salva com sucesso\",\n \"store/b2b-quotes.create.error\": \"Ocorreu um erro ao salvar a cotação\",\n \"store/b2b-quotes.create.required\": \"Insira um nome para sua cotação\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"Nome da cotação\",\n \"store/b2b-quotes.create.empty-state-label\": \"Para criar uma cotação, adicione itens ao seu carrinho.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{caracter restante}=500{Limite de 500 caracteres atingido}other{caracteres restantes}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"Salvar para depois\",\n \"store/b2b-quotes.create.button.request-quote\": \"Solicitar cotação\",\n \"store/b2b-quotes.back\": \"Voltar\",\n \"store/b2b-quotes.error.notAuthenticated\": \"Faça login para visualizar este conteúdo.\",\n \"store/b2b-quotes.error.notPermitted\": \"Você não tem as permissões necessárias para visualizar este conteúdo.\",\n \"store/b2b-quotes.quotes-table.title\": \"Minhas cotações\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"Nova cotação\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"Nenhuma cotação encontrada.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"Detalhes\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"Nome de ref.\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"Subtotal\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"Criada por\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"Criada em\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"Data de expiração\",\n \"store/b2b-quotes.quotes-table.status.title\": \"Status\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"Última atualização\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"Organização\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"Centro de custo\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"Org. e centro de custo\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"Buscar organizações...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"Buscar centros de custo...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"Mostrar linhas\",\n \"store/b2b-quotes.quotes-table.of\": \"de\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"Buscar\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"Alternar campos visíveis\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"Mostrar tudo\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"Ocultar tudo\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"Limpar filtros\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"Status\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"Todos\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"Nenhum\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"Qualquer um\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"é\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"inclui\",\n \"store/b2b-quotes.quote-details.title\": \"Detalhes da cotação\",\n \"store/b2b-quotes.quote-details.decline\": \"Recusar\",\n \"store/b2b-quotes.quote-details.save\": \"Salvar cotação\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"Enviar para o vendedor\",\n \"store/b2b-quotes.quote-details.use-quote\": \"Usar cotação\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"Subtotal\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"Data de expiração\",\n \"store/b2b-quotes.quote-details.status.title\": \"Status\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"Imagem\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"Código de ref.\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"Nome\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"Quantidade\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"Preço\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"Total\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"Aplicar desconto percentual\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"Aplique um desconto percentual ao subtotal da cotação. Atenção: isso irá substituir quaisquer alterações feitas nos preços de SKU individuais.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"O desconto percentual está desativado porque a promoção já está aplicando um desconto maior do que o desconto manual máximo.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"Os descontos manuais acima de {maxDiscount}% serão recusados automaticamente.\",\n \"store/b2b-quotes.quote-details.products.title\": \"Produtos ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"Comentários poderão ser adicionados após as cotações serem criadas.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"Histórico de atualizações\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, =0{Criada}other{Atualizada}} em {date} por {email} ({role}) com status {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"Observações:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"Adicionar observação\",\n \"store/b2b-quotes.quote-details.update-success\": \"Cotação salva com sucesso.\",\n \"store/b2b-quotes.quote-details.update-error\": \"Erro ao salvar cotação. Consulte o console para mais detalhes.\",\n \"store/b2b-quotes.quote-details.use-error\": \"Erro ao usar cotação. Consulte o console para mais detalhes.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"Alguns descontos estão maiores que o permitido.\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"Desconto percentual\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"Subtotal original\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"Preço original\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"Preço cotado\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"Subtotal cotado\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"Alterar data de expiração\",\n \"store/b2b-quotes.quote-locking.title\": \"Cotação em uso\",\n \"store/b2b-quotes.quote-locking.message\": \"Seu carrinho contém itens de uma cotação e não pode ser alterado. Você pode retornar à página de checkout ou limpar o carrinho para continuar navegando.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"Voltar para o checkout\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"Limpar carrinho\",\n \"store/b2b-quotes.quote-status.ready\": \"Pronta\",\n \"store/b2b-quotes.quote-status.placed\": \"Efetuada\",\n \"store/b2b-quotes.quote-status.revised\": \"Revisada\",\n \"store/b2b-quotes.quote-status.pending\": \"Pendente\",\n \"store/b2b-quotes.quote-status.expired\": \"Expirada\",\n \"store/b2b-quotes.quote-status.declined\": \"Recusada\"\n}\n\n```"
}
] |
code_b2b-quotes_d06b80a2
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/en.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"B2B Quotes\",\n \"admin/b2b-quotes.navigation.keywords\": \"b2b, quote, quotes, cart, carts, expiration\",\n \"admin/b2b-quotes.settings.title\": \"B2B Quote Settings\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"Failed to save settings\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"Settings saved successfully\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"Default expiration period (in days) for quotes and saved carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"Quote Management for Marketplace\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"Configure how quotes are managed in the marketplace.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"Who is responsible for managing quotes?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"Marketplace\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"Only the main marketplace manages quotes.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"Sellers\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"Sellers manage quotes for their own products and can choose not to account quotes.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"Save Settings\",\n \"store/b2b-quotes.myAccountLink\": \"Quotes and Saved Carts\",\n \"store/b2b-quotes.create.title\": \"Create Quote\",\n \"store/b2b-quotes.create.nameLabel\": \"Name\",\n \"store/b2b-quotes.create.descriptionLabel\": \"Notes\",\n \"store/b2b-quotes.create.success\": \"Quote saved successfully\",\n \"store/b2b-quotes.create.error\": \"Error while saving quote\",\n \"store/b2b-quotes.create.required\": \"Enter a name for your quote\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"Quote name\",\n \"store/b2b-quotes.create.empty-state-label\": \"To create a quote, start adding items to your cart.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{character left}=500{500-character limit reached}other{characters left}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"Save for Later\",\n \"store/b2b-quotes.create.button.request-quote\": \"Request Quote\",\n \"store/b2b-quotes.back\": \"Back\",\n \"store/b2b-quotes.error.notAuthenticated\": \"Please log in to view this content.\",\n \"store/b2b-quotes.error.notPermitted\": \"You don't have the necessary permissions to view this content.\",\n \"store/b2b-quotes.quotes-table.title\": \"My Quotes\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"New Quote\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"No quotes found.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"Details\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"Ref. Name\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"Subtotal\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"Created by\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"Created on\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"Expiration Date\",\n \"store/b2b-quotes.quotes-table.status.title\": \"Status\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"Last Update\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"Organization\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"Cost Center\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"Org. & Cost Center\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"Search organizations...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"Search cost centers...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"Show rows\",\n \"store/b2b-quotes.quotes-table.of\": \"of\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"Search\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"Toggle visible fields\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"Show all\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"Hide all\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"Clear filters\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"Status\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"All\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"None\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"Any\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"is\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"includes\",\n \"store/b2b-quotes.quote-details.title\": \"Quote Details\",\n \"store/b2b-quotes.quote-details.decline\": \"Reject\",\n \"store/b2b-quotes.quote-details.save\": \"Save Quote\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"Submit to Sales Rep\",\n \"store/b2b-quotes.quote-details.use-quote\": \"Use Quote\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"Subtotal\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"Expiration Date\",\n \"store/b2b-quotes.quote-details.status.title\": \"Status\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"Image\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"Ref. Code\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"Name\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"Quantity\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"Price\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"Total\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"Apply Percentage Discount\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"Apply a percentage discount to the quote subtotal. Note that this will override any changes made to individual SKU prices.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"Percentage discount is not available because a promotion already applies a discount higher than the maximum manual discount.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"Manual discounts above {maxDiscount}% will be automatically rejected.\",\n \"store/b2b-quotes.quote-details.products.title\": \"Products ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"Notes can be added after the quotes has been created.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"Update History\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, =0{Created}other{Updated}} on {date} by {email} ({role}) with status {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"Notes:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"Add Note\",\n \"store/b2b-quotes.quote-details.update-success\": \"Quote saved successfully\",\n \"store/b2b-quotes.quote-details.update-error\": \"Error while saving quote. See console for more details.\",\n \"store/b2b-quotes.quote-details.use-error\": \"Error while using quote. See console for more details.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"Some discounts are higher than allowed\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"Percentage Discount\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"Original Subtotal\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"Original Price\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"Quoted Price\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"Quoted Subtotal\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"Change Expiration Date\",\n \"store/b2b-quotes.quote-locking.title\": \"Quote in Use\",\n \"store/b2b-quotes.quote-locking.message\": \"Your cart currently contains items from a quote and cannot be modified. You may return to the checkout page or clear your cart to continue browsing.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"Return to Checkout\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"Clear Cart\",\n \"store/b2b-quotes.quote-status.ready\": \"Ready\",\n \"store/b2b-quotes.quote-status.placed\": \"Placed\",\n \"store/b2b-quotes.quote-status.revised\": \"Revised\",\n \"store/b2b-quotes.quote-status.pending\": \"Pending\",\n \"store/b2b-quotes.quote-status.expired\": \"Expired\",\n \"store/b2b-quotes.quote-status.declined\": \"Rejected\"\n}\n\n```"
}
] |
code_b2b-quotes_1c15f5c8
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/it.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"Preventivi B2B\",\n \"admin/b2b-quotes.navigation.keywords\": \"b2b, preventivo, preventivi, carrello, carrelli, scadenza\",\n \"admin/b2b-quotes.settings.title\": \"Impostazioni preventivi B2B\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"Impossibile salvare le impostazioni\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"Impostazioni salvate correttamente\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"Periodo di scadenza predefinito (in giorni) per preventivi e carrelli salvati\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"Gestione delle offerte per il marketplace\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"Configura come gestire le offerte nel marketplace.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"Chi è responsabile della gestione delle offerte?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"Marketplace\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"Solo il marketplace principale gestisce le offerte.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"Venditori\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"I venditori gestiscono le offerte per i loro prodotti e possono scegliere di non considerarle.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"Salva impostazioni\",\n \"store/b2b-quotes.myAccountLink\": \"Preventivi e carrelli salvati\",\n \"store/b2b-quotes.create.title\": \"Crea preventivo\",\n \"store/b2b-quotes.create.nameLabel\": \"Nome\",\n \"store/b2b-quotes.create.descriptionLabel\": \"Note\",\n \"store/b2b-quotes.create.success\": \"Preventivo salvato correttamente\",\n \"store/b2b-quotes.create.error\": \"Errore durante il salvataggio del preventivo\",\n \"store/b2b-quotes.create.required\": \"Inserisci un nome per il tuo preventivo\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"Nome preventivo\",\n \"store/b2b-quotes.create.empty-state-label\": \"Per creare un preventivo, inizia ad aggiungere articoli al tuo carrello.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{carattere rimanente}=500{limite dei 500 caratteri raggiunto}other{caratteri rimanenti}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"Salva per dopo\",\n \"store/b2b-quotes.create.button.request-quote\": \"Richiedi preventivo\",\n \"store/b2b-quotes.back\": \"Indietro\",\n \"store/b2b-quotes.error.notAuthenticated\": \"Effettua il login per visualizzare questo contenuto.\",\n \"store/b2b-quotes.error.notPermitted\": \"Non disponi dei permessi necessari per visualizzare questo contenuto.\",\n \"store/b2b-quotes.quotes-table.title\": \"I miei preventivi\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"Nuovo preventivo\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"Nessun preventivo trovato.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"Dettagli\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"Nome di rif.\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"Subtotale\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"Creato da\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"Creato il\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"Data di scadenza\",\n \"store/b2b-quotes.quotes-table.status.title\": \"Stato\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"Ultimo aggiornamento\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"Organizzazione\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"Centro di costo\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"Organizzazione e centro di costo\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"Cerca organizzazioni...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"Cerca centri di costo...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"Mostra righe\",\n \"store/b2b-quotes.quotes-table.of\": \"di\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"Cerca\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"Attiva/Disattiva campi visibili\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"Mostra tutto\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"Nascondi tutto\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"Rimuovi filtri\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"Stato\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"Tutti\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"Nessuno\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"Qualsiasi\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"è\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"include\",\n \"store/b2b-quotes.quote-details.title\": \"Dettagli preventivo\",\n \"store/b2b-quotes.quote-details.decline\": \"Rifiuta\",\n \"store/b2b-quotes.quote-details.save\": \"Salva preventivo\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"Invia al rappresentante di vendita\",\n \"store/b2b-quotes.quote-details.use-quote\": \"Utilizza preventivo\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"Subtotale\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"Data di scadenza\",\n \"store/b2b-quotes.quote-details.status.title\": \"Stato\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"Immagine\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"Codice di rif.\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"Nome\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"Quantità\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"Prezzo\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"Totale\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"Applica sconto percentuale\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"Applica uno sconto percentuale al subtotale del preventivo. Tieni presente che quest'azione sostituirà tutte le modifiche apportate ai prezzi individuali dello SKU.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"Lo sconto percentuale non è disponibile in quanto una promozione applica già uno sconto superiore allo sconto manuale massimo.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"Gli sconti manuali superiori a {maxDiscount}% verranno rifiutati automaticamente.\",\n \"store/b2b-quotes.quote-details.products.title\": \"Prodotti ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"Dopo aver creato le citazioni, è possibile aggiungere delle note.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"Cronologia degli aggiornamenti\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, =0{Creato}other{Aggiornato}} il {date} da {email} ({role}) con stato {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"Note:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"Aggiungi nota\",\n \"store/b2b-quotes.quote-details.update-success\": \"Preventivo salvato correttamente\",\n \"store/b2b-quotes.quote-details.update-error\": \"Errore durante il salvataggio del preventivo. Visualizza la console per maggiori dettagli.\",\n \"store/b2b-quotes.quote-details.use-error\": \"Errore durante l'utilizzo del preventivo. Visualizza la console per maggiori dettagli.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"Alcuni sconti sono superiori a quelli consentiti\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"Sconto percentuale\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"Subtotale originale\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"Prezzo originale\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"Prezzo preventivato\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"Subtotale preventivato\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"Cambia data di scadenza\",\n \"store/b2b-quotes.quote-locking.title\": \"Preventivo in uso\",\n \"store/b2b-quotes.quote-locking.message\": \"Il tuo carrello attualmente contiene articoli da un preventivo e non può essere modificato. Puoi tornare alla pagina del checkout o svuotare il carrello per continuare la navigazione.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"Torna al checkout\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"Svuota carrello\",\n \"store/b2b-quotes.quote-status.ready\": \"Pronto\",\n \"store/b2b-quotes.quote-status.placed\": \"Effettuato\",\n \"store/b2b-quotes.quote-status.revised\": \"Revisonato\",\n \"store/b2b-quotes.quote-status.pending\": \"In sospeso\",\n \"store/b2b-quotes.quote-status.expired\": \"Scaduto\",\n \"store/b2b-quotes.quote-status.declined\": \"Rifiutato\"\n}\n\n```"
}
] |
code_b2b-quotes_479421b4
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/fr.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"Devis B2B\",\n \"admin/b2b-quotes.navigation.keywords\": \"B2B, devis, panier, paniers, expiration\",\n \"admin/b2b-quotes.settings.title\": \"Paramètres de devis B2B\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"Échec de la sauvegarde des paramètres\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"Paramètres enregistrés avec succès\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"Période d’expiration par défaut (en jours) pour les devis et les paniers enregistrés\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"Gestion des devis pour le marché\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"Configurez la gestion des devis sur le marché.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"Qui est responsable de la gestion des devis ?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"Marché\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"Seul le marché principal gère les devis.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"Vendeurs\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"Les vendeurs gèrent les devis pour leurs propres produits et peuvent choisir de ne pas les prendre en compte.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"Sauvegarder les paramètres\",\n \"store/b2b-quotes.myAccountLink\": \"Devis et paniers sauvegardés\",\n \"store/b2b-quotes.create.title\": \"Créer un devis\",\n \"store/b2b-quotes.create.nameLabel\": \"Nom\",\n \"store/b2b-quotes.create.descriptionLabel\": \"Observations\",\n \"store/b2b-quotes.create.success\": \"Le devis a bien été sauvegardé\",\n \"store/b2b-quotes.create.error\": \"Erreur pendant l'enregistrement du devis\",\n \"store/b2b-quotes.create.required\": \"Entrez un nom pour votre devis\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"Nom du devis\",\n \"store/b2b-quotes.create.empty-state-label\": \"Pour créer un devis, ajoutez des articles dans votre panier.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, one {} =499{caractère restant}=500{La limite de 500 caractères a été atteinte}other{caractères restants}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"Enregistrer pour plus tard\",\n \"store/b2b-quotes.create.button.request-quote\": \"Demander un devis\",\n \"store/b2b-quotes.back\": \"Retour\",\n \"store/b2b-quotes.error.notAuthenticated\": \"Veuillez vous connecter pour voir ce contenu.\",\n \"store/b2b-quotes.error.notPermitted\": \"Vous n’avez pas les autorisations nécessaires pour voir ce contenu.\",\n \"store/b2b-quotes.quotes-table.title\": \"Mes devis\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"Nouveau devis\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"Aucun devis trouvé.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"Informations\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"Nom de référence\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"Sous-total\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"Créé par\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"Créé le\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"Date d’expiration\",\n \"store/b2b-quotes.quotes-table.status.title\": \"Statut\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"Dernière mise à jour\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"Organisation\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"Centre de coûts\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"Centre de Coût et organisation\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"Rechercher des organisations...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"Rechercher les centres de coûts...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"Afficher les lignes\",\n \"store/b2b-quotes.quotes-table.of\": \"le\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"Rechercher\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"Basculer les champs visibles\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"Tout afficher\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"Tout masquer\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"Effacer les filtres\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"Statut\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"Tout\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"Aucun\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"Chaque\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"est\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"inclus\",\n \"store/b2b-quotes.quote-details.title\": \"Détails du devis\",\n \"store/b2b-quotes.quote-details.decline\": \"Rejeter\",\n \"store/b2b-quotes.quote-details.save\": \"Enregistrer le devis\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"Soumettre au commercial\",\n \"store/b2b-quotes.quote-details.use-quote\": \"Utiliser le devis\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"Sous-total\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"Date d’expiration\",\n \"store/b2b-quotes.quote-details.status.title\": \"Statut\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"Photo\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"Code de référence\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"Nom\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"Quantité\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"Prix\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"Total\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"Appliquer la remise en pourcentage\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"Appliquer une remise en pourcentage au sous-total du devis. Remarque : cela remplacera toutes les modifications apportées aux prix individuels de SKU.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"La remise en pourcentage n'est pas disponible car une promotion applique déjà une réduction supérieure à la remise manuelle maximale.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"Les remises manuelles supérieures à {maxDiscount}% seront automatiquement refusées.\",\n \"store/b2b-quotes.quote-details.products.title\": \"Produits ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"Des notes peuvent être ajoutées après la création des devis.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"Mettre à jour l’historique\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, =0{Créé}other{Mis à jour}} le {date} par {email} ({role}) avec le statut {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"Notes :\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"Ajouter une note\",\n \"store/b2b-quotes.quote-details.update-success\": \"Le devis a bien été sauvegardé\",\n \"store/b2b-quotes.quote-details.update-error\": \"Erreur lors de la sauvegarde du devis. Voir la console pour plus de détails.\",\n \"store/b2b-quotes.quote-details.use-error\": \"Erreur lors de l'utilisation du devis. Voir la console pour plus de détails.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"Certaines remises sont plus élevées que ce qui est autorisé\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"Remise en pourcentage\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"Sous-total d’origine\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"Prix initial\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"Prix du devis\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"Sous-total du devis\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"Changer la date d'échéance\",\n \"store/b2b-quotes.quote-locking.title\": \"Devis utilisé\",\n \"store/b2b-quotes.quote-locking.message\": \"Votre panier contient actuellement les articles d’un devis ne pouvant être modifié. Vous pouvez soit retourner à la page de paiement ou vider votre panier pour continuer à naviguer.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"Retour au checkout\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"Vider le panier\",\n \"store/b2b-quotes.quote-status.ready\": \"Prêt\",\n \"store/b2b-quotes.quote-status.placed\": \"Placé\",\n \"store/b2b-quotes.quote-status.revised\": \"Révisé\",\n \"store/b2b-quotes.quote-status.pending\": \"En attente\",\n \"store/b2b-quotes.quote-status.expired\": \"Expiré\",\n \"store/b2b-quotes.quote-status.declined\": \"Refusé\"\n}\n\n```"
}
] |
code_b2b-quotes_a49865af
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/el.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"Β2Β Προσφορές\",\n \"admin/b2b-quotes.navigation.keywords\": \"b2b, προσφορά, προσφορές, καρότσι, καρότσια, λήξη\",\n \"admin/b2b-quotes.settings.title\": \"B2B Ρυθμίσεις προσφοράς\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"Αποτυχία αποθήκευσης ρυθμίσεων\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"Οι ρυθμίσεις αποθηκεύτηκαν επιτυχώς\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"Προεπιλεγμένη περίοδος λήξης (σε ημέρες) για προσφορές και αποθηκευμένα καρότσια\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"Διαχείριση προσφορών για την αγορά\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"Ρυθμίστε πώς διαχειρίζονται οι προσφορές στην αγορά.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"Ποιος είναι υπεύθυνος για τη διαχείριση των προσφορών;\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"Αγορά\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"Μόνο η κύρια αγορά διαχειρίζεται τις προσφορές.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"Πωλητές\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"Οι πωλητές διαχειρίζονται τις προσφορές για τα δικά τους προϊόντα και μπορούν να επιλέξουν να μην τις υπολογίζουν.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"Αποθήκευση ρυθμίσεων\",\n \"store/b2b-quotes.myAccountLink\": \"Προσφορές και αποθηκευμένα καρότσια\",\n \"store/b2b-quotes.create.title\": \"Δημιουργία προσφοράς\",\n \"store/b2b-quotes.create.nameLabel\": \"Όνομα\",\n \"store/b2b-quotes.create.descriptionLabel\": \"Σημειώσεις\",\n \"store/b2b-quotes.create.success\": \"Η προσφορά αποθηκεύτηκε με επιτυχία\",\n \"store/b2b-quotes.create.error\": \"Σφάλμα κατά την αποθήκευση προσφοράς\",\n \"store/b2b-quotes.create.required\": \"Εισαγάγετε όνομα για την προσφορά σας\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"Όνομα προσφοράς\",\n \"store/b2b-quotes.create.empty-state-label\": \"Για να δημιουργήσετε προσφορά, ξεκινήστε την προσθήκη στοιχείων στο καρότσι σας.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{υπολειπόμενοι χαρακτήρες}=500{προσεγγίστηκε το όριο 500-χαρακτήρων}other{υπολειπόμενοι χαρακτήρες}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"Αποθήκευση για αργότερα\",\n \"store/b2b-quotes.create.button.request-quote\": \"Αίτημα προσφοράς\",\n \"store/b2b-quotes.back\": \"Πίσω\",\n \"store/b2b-quotes.error.notAuthenticated\": \"Παρακαλούμε συνδεθείτε για να δείτε αυτό το περιεχόμενο.\",\n \"store/b2b-quotes.error.notPermitted\": \"Δεν έχετε τα απαραίτητα δικαιώματα για προβολή αυτού του περιεχομένου.\",\n \"store/b2b-quotes.quotes-table.title\": \"Οι προσφορές μου\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"Νέα προσφορά\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"Δε βρέθηκαν προσφορές.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"Λεπτομέρειες\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"Όνομα Αναφοράς\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"Υποσύνολο\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"Δημιουργήθηκε από\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"Δημιουργήθηκε στις\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"Ημερομηνία Λήξης\",\n \"store/b2b-quotes.quotes-table.status.title\": \"Κατάσταση\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"Τελευταία ενημέρωση\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"Οργανισμός\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"Κέντρο κόστους\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"Οργανισμός & Κέντρο Κόστους\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"Αναζήτηση οργανισμών...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"Αναζήτηση κέντρων κόστους...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"Εμφάνιση σειρών\",\n \"store/b2b-quotes.quotes-table.of\": \"από\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"Αναζήτηση\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"Εναλλαγή ορατών πεδίων\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"Εμφάνιση όλων\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"Aπόκρυψη όλων\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"Καθαρισμός φίλτρων\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"Κατάσταση\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"Όλα\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"Κανένα\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"Οποιοδήποτε\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"είναι\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"περιλαμβάνει\",\n \"store/b2b-quotes.quote-details.title\": \"Λεπτομέρειες Προσφοράς\",\n \"store/b2b-quotes.quote-details.decline\": \"Απόρριψη\",\n \"store/b2b-quotes.quote-details.save\": \"Αποθήκευση Προσφοράς\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"Υποβολή στον Εκπρόσωπο Πωλήσεων\",\n \"store/b2b-quotes.quote-details.use-quote\": \"Χρήση Προσφοράς\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"Υποσύνολο\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"Ημερομηνία Λήξης\",\n \"store/b2b-quotes.quote-details.status.title\": \"Κατάσταση\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"Εικόνα\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"Κωδικός Αναφοράς\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"Όνομα\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"Ποσότητα\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"Τιμή\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"Σύνολο\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"Εφαρμογή ποσοστού έκπτωσης\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"Εφαρμόστε ένα ποσοστό έκπτωσης στο υποσύνολο προσφοράς. Σημειώστε ότι αυτό θα παρακάμψει τυχόν αλλαγές που έγιναν σε μεμονωμένες τιμές SKU.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"Το ποσοστό έκπτωσης δεν είναι διαθέσιμο, επειδή μια προσφορά εφαρμόζει ήδη έκπτωση υψηλότερη από τη μέγιστη μη αυτόματη έκπτωση.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"Μη αυτόματες εκπτώσεις άνω του {maxDiscount}% θα απορρίπτονται αυτόματα.\",\n \"store/b2b-quotes.quote-details.products.title\": \"Προιοντα ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"Οι σημειώσεις μπορούν να προστεθούν μετά τη δημιουργία των εισαγωγικών.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"Ενημέρωση Ιστορικού\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, =0{δημιουργήθηκε}other{ενημερώθηκε}} στις {date} μέσω {email} ({role}) με κατάσταση {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"Σημειώσεις:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"Προσθήκη σημείωσης\",\n \"store/b2b-quotes.quote-details.update-success\": \"Η προσφορά αποθηκεύτηκε με επιτυχία\",\n \"store/b2b-quotes.quote-details.update-error\": \"Σφάλμα κατά την αποθήκευση προσφοράς. Δείτε την κονσόλα για περισσότερες λεπτομέρειες.\",\n \"store/b2b-quotes.quote-details.use-error\": \"Σφάλμα κατά τη χρήση προσφοράς. Δείτε την κονσόλα για περισσότερες λεπτομέρειες.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"Ορισμένες εκπτώσεις είναι υψηλότερες από τις επιτρεπόμενες\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"Ποσοστό έκπτωσης\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"Αρχικό υποσύνολο\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"Αρχική τιμή\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"Τιμή προσφοράς\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"Υποσύνολο προσφοράς\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"Αλλαγή Ημερομηνία λήξης\",\n \"store/b2b-quotes.quote-locking.title\": \"Προσφορά σε χρήση\",\n \"store/b2b-quotes.quote-locking.message\": \"Το καρότσι σας περιέχει προϊόντα από μια προσφορά και δεν μπορεί να τροποποιηθεί. Μπορείτε να επιστρέψετε στη σελίδα ολοκλήρωσης αγοράς ή να καθαρίσετε το καρότσι σας για να συνεχίσετε την περιήγηση.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"Επιστροφή στην Ολοκλήρωση της αγοράς\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"Καθαρισμός καροτσιού\",\n \"store/b2b-quotes.quote-status.ready\": \"Έτοιμο\",\n \"store/b2b-quotes.quote-status.placed\": \"Τοποθετήθηκε\",\n \"store/b2b-quotes.quote-status.revised\": \"Αναθεωρήθηκε\",\n \"store/b2b-quotes.quote-status.pending\": \"Σε εκκρεμότητα\",\n \"store/b2b-quotes.quote-status.expired\": \"Έληξε\",\n \"store/b2b-quotes.quote-status.declined\": \"Απορρίφθηκε\"\n}\n\n```"
}
] |
code_b2b-quotes_a7a1f5dc
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/bg.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"B2B оферти\",\n \"admin/b2b-quotes.navigation.keywords\": \"b2b, оферта, оферти, количка, колички, изтичане\",\n \"admin/b2b-quotes.settings.title\": \"Настройки на B2B офертите\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"Неуспешно запазване на настройките\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"Настройките са запазени успешно\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"Период на изтичане по подразбиране (в дни) за оферти и запазени колички\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"Управление на оферти за пазара\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"Конфигурирайте как се управляват офертите на пазара.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"Кой е отговорен за управлението на офертите?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"Пазар\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"Само основният пазар управлява офертите.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"Продавачи\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"Продавачите управляват офертите за своите продукти и могат да изберат да не отчитат офертите.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"Запазване на настройките\",\n \"store/b2b-quotes.myAccountLink\": \"Оферти и запазени колички\",\n \"store/b2b-quotes.create.title\": \"Създаване на оферта\",\n \"store/b2b-quotes.create.nameLabel\": \"Име\",\n \"store/b2b-quotes.create.descriptionLabel\": \"Бележки\",\n \"store/b2b-quotes.create.success\": \"Офертата е запазена успешно\",\n \"store/b2b-quotes.create.error\": \"Грешка при запазването на офертата\",\n \"store/b2b-quotes.create.required\": \"Въведете име за офертата си\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"Име на офертата\",\n \"store/b2b-quotes.create.empty-state-label\": \"За да създадете оферта, започнете да добавяте артикули в количката си.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{знак остава}=500{лимитът от 500 знака е достигнат}other{знака остават}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"Запазване за по-късно\",\n \"store/b2b-quotes.create.button.request-quote\": \"Заявка за оферта\",\n \"store/b2b-quotes.back\": \"Назад\",\n \"store/b2b-quotes.error.notAuthenticated\": \"Моля, влезте, за да прегледате това съдържание.\",\n \"store/b2b-quotes.error.notPermitted\": \"Нямате необходимите разрешения, за да прегледате това съдържание.\",\n \"store/b2b-quotes.quotes-table.title\": \"Моите оферти\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"Нова оферта\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"Няма намерени оферти.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"Подробности\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"Реф. име\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"Междинна сума\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"Създадено от\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"Създадена на\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"Дата на валидност\",\n \"store/b2b-quotes.quotes-table.status.title\": \"Статус\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"Последна актуализация\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"Организация\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"Разходен център\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"Орг. и разходен център\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"Търсене на организации...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"Търсене на разходни центрове...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"Показване на редове\",\n \"store/b2b-quotes.quotes-table.of\": \"от\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"Търсене\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"Превключване на видимите полета\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"Показване на всички\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"Скриване на всички\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"Изчистване на филтрите\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"Статус\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"Всички\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"Никакъв\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"Който и да е\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"е\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"включва\",\n \"store/b2b-quotes.quote-details.title\": \"Подробности за офертата\",\n \"store/b2b-quotes.quote-details.decline\": \"Отхвърляне\",\n \"store/b2b-quotes.quote-details.save\": \"Запазване на офертата\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"Изпращане към представител по продажбите\",\n \"store/b2b-quotes.quote-details.use-quote\": \"Използване на офертата\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"Междинна сума\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"Дата на валидност\",\n \"store/b2b-quotes.quote-details.status.title\": \"Статус\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"Изображение\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"Реф. код\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"Име\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"Количество\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"Цена\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"Общо\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"Прилагане на процентна отстъпка\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"Приложете процентна отстъпка към междинната сума на офертата. Имайте предвид, че това ще замести всякакви направени промени в цените на отделните SKU.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"Процентната отстъпка не е налична, защото заради промоцията вече се прилага отстъпка, по-висока от максималната ръчна отстъпка.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"Ръчните отстъпки над {maxDiscount}% ще бъдат отхвърляни автоматично.\",\n \"store/b2b-quotes.quote-details.products.title\": \"Продукти ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"Бележки могат да се добавят след създаването на офертите.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"Актуализиране на хронологията\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, =0{Създадено}other{Актуализирано}} на {date} от {email} ({role}) със статус {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"Бележки:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"Добавяне на бележка\",\n \"store/b2b-quotes.quote-details.update-success\": \"Офертата е запазена успешно\",\n \"store/b2b-quotes.quote-details.update-error\": \"Грешка при запазване на офертата. Вижте конзолата за повече подробности.\",\n \"store/b2b-quotes.quote-details.use-error\": \"Грешка при използване на офертата. Вижте конзолата за повече подробности.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"Някои отстъпки са по-високи от разрешеното\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"Процентна отстъпка\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"Първоначална междинна стойност\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"Първоначална цена\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"Цена на офертата\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"Междинна цена на офертата\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"Промяна на датата на валидност\",\n \"store/b2b-quotes.quote-locking.title\": \"Офертата се използва\",\n \"store/b2b-quotes.quote-locking.message\": \"Количката ви в момента съдържа артикули от оферта и не може да бъде променена. За да продължите да пазарувате, можете да се върнете на страницата за финализиране или да изчистите количката си.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"Връщане към финализирането\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"Изчистване на количката\",\n \"store/b2b-quotes.quote-status.ready\": \"Готов\",\n \"store/b2b-quotes.quote-status.placed\": \"Направена\",\n \"store/b2b-quotes.quote-status.revised\": \"Редактирана\",\n \"store/b2b-quotes.quote-status.pending\": \"В изчакване\",\n \"store/b2b-quotes.quote-status.expired\": \"С изтекъл срок\",\n \"store/b2b-quotes.quote-status.declined\": \"Отхвърлена\"\n}\n\n```"
}
] |
code_b2b-quotes_20fd1319
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/ro.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"Oferte B2B\",\n \"admin/b2b-quotes.navigation.keywords\": \"b2b, ofertă, oferte, coș de cumpărături, coșuri de cumpărături, expirare\",\n \"admin/b2b-quotes.settings.title\": \"Setări ofertă B2B\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"Salvarea setărilor a eșuat\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"Setările au fost salvate cu succes\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"Perioada implicită de expirare (în zile) pentru oferte și coșuri salvate\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"Salvare setări\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"Managementul ofertelor pentru piață\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"Configurează modul în care sunt gestionate ofertele pe piață.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"Cine este responsabil pentru gestionarea ofertelor?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"Piață\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"Doar piața principală gestionează ofertele.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"Vânzători\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"Vânzătorii gestionează ofertele pentru produsele lor și pot alege să nu le ia în considerare.\",\n \"store/b2b-quotes.myAccountLink\": \"Oferte și coșuri salvate\",\n \"store/b2b-quotes.create.title\": \"Creează ofertă\",\n \"store/b2b-quotes.create.nameLabel\": \"Nume\",\n \"store/b2b-quotes.create.descriptionLabel\": \"Notițe\",\n \"store/b2b-quotes.create.success\": \"Oferta salvată cu succes\",\n \"store/b2b-quotes.create.error\": \"Eroare la salvarea ofertei\",\n \"store/b2b-quotes.create.required\": \"Introduceți un nume pentru oferta dumneavoastră\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"Numele ofertelor\",\n \"store/b2b-quotes.create.empty-state-label\": \"Pentru a genera o ofertă, începe să adaugi articole în coș.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{caracter rămas}=500{limită de 500 de caractere atinsă}other{caractere rămase}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"Salvează pentru mai târziu\",\n \"store/b2b-quotes.create.button.request-quote\": \"Solicitare ofertă\",\n \"store/b2b-quotes.back\": \"Înapoi\",\n \"store/b2b-quotes.error.notAuthenticated\": \"Te rugăm să te autentifici pentru a vedea acest conținut.\",\n \"store/b2b-quotes.error.notPermitted\": \"Nu ai drepturile necesare pentru a vizualiza acest conținut.\",\n \"store/b2b-quotes.quotes-table.title\": \"Ofertele mele\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"Ofertă nouă\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"Nu s-a găsit nicio ofertă.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"Detalii\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"Nume ref.\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"Subtotal\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"Creat de\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"Creată la\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"Data expirării\",\n \"store/b2b-quotes.quotes-table.status.title\": \"Status\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"Ultima actualizare\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"Organizație\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"Centru de Cost\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"Org. și Centru de cost\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"Căutare organizații...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"Căutare centre de costuri...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"Arată rânduri\",\n \"store/b2b-quotes.quotes-table.of\": \"din\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"Caută\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"Comută câmpurile vizibile\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"Arată toate\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"Ascunde toate\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"Șterge filtrele\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"Status\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"Toate\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"Niciunul\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"Oricare\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"sunt\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"include\",\n \"store/b2b-quotes.quote-details.title\": \"Detalii ofertă\",\n \"store/b2b-quotes.quote-details.decline\": \"Refuză\",\n \"store/b2b-quotes.quote-details.save\": \"Salvează oferta\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"Trimite către reprezentantul de vânzări\",\n \"store/b2b-quotes.quote-details.use-quote\": \"Utilizează oferta\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"Subtotal\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"Data expirării\",\n \"store/b2b-quotes.quote-details.status.title\": \"Status\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"Imagine\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"Cod ref.\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"Nume\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"Cantitate\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"Preț\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"Total\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"Aplică reducerea procentuală\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"Aplică o reducere procentuală la subtotalul ofertei. Notă: Aceasta va suprascrie orice modificare făcută la prețurile SKU individuale.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"Reducerea procentuală nu este disponibilă deoarece o promoție aplică deja o reducere mai mare decât reducerea manuală maximă.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"Reducerile manuale peste {maxDiscount}% vor fi respinse automat.\",\n \"store/b2b-quotes.quote-details.products.title\": \"Produse ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"Notele pot fi adăugate după ce au fost create ghilimele.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"Actualizare Istoric\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, =0{Creată}other{Actualizată}} la data {date} prin {email} ({role}) cu statusul {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"Note:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"Adaugă notă\",\n \"store/b2b-quotes.quote-details.update-success\": \"Oferta salvată cu succes\",\n \"store/b2b-quotes.quote-details.update-error\": \"Eroare la salvarea ofertei. Consultă consola pentru mai multe detalii.\",\n \"store/b2b-quotes.quote-details.use-error\": \"Eroare la utilizarea ofertei. Consultă consola pentru mai multe detalii.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"Unele reduceri sunt mai mari decât cele permise\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"Discount procentual\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"Subtotal inițial\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"Preț original\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"Preț ofertat\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"Subtotal ofertat\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"Modificare dată expirare\",\n \"store/b2b-quotes.quote-locking.title\": \"Ofertă în uz\",\n \"store/b2b-quotes.quote-locking.message\": \"Coșul tău de cumpărături conține elemente dintr-o ofertă și nu poate fi modificat. Poți reveni la pagina de finalizare a comenzii sau ștergi coșul tău pentru a continua navigarea.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"Înapoi la finalizarea comenzii\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"Golește coșul\",\n \"store/b2b-quotes.quote-status.ready\": \"Gata\",\n \"store/b2b-quotes.quote-status.placed\": \"Plasată\",\n \"store/b2b-quotes.quote-status.revised\": \"Revizuit\",\n \"store/b2b-quotes.quote-status.pending\": \"În așteptare\",\n \"store/b2b-quotes.quote-status.expired\": \"Expirată\",\n \"store/b2b-quotes.quote-status.declined\": \"Refuzat\"\n}\n\n```"
}
] |
code_b2b-quotes_d9b3e195
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/ca.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"Pressupostos B2B\",\n \"admin/b2b-quotes.navigation.keywords\": \"b2b, pressupost, pressuposts, carretó, carretons, caducitat\",\n \"admin/b2b-quotes.settings.title\": \"Configuració dels pressuposts B2B\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"No s'ha pogut desar la configuració\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"S'ha desat correctament la configuració\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"Període de venciment predeterminat (en dies) per a pressuposts i carretons desats\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"Gestió d'ofertes per al mercat\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"Configura com es gestionen les ofertes al mercat.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"Qui és responsable de gestionar les ofertes?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"Mercat\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"Només el mercat principal gestiona les ofertes.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"Venedors\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"Els venedors gestionen les ofertes dels seus productes i poden triar no comptar-les.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"Desa la configuració\",\n \"store/b2b-quotes.myAccountLink\": \"Pressuposts i carretons desats\",\n \"store/b2b-quotes.create.title\": \"Crea un pressupost\",\n \"store/b2b-quotes.create.nameLabel\": \"Nom\",\n \"store/b2b-quotes.create.descriptionLabel\": \"Notes\",\n \"store/b2b-quotes.create.success\": \"S'ha desat correctament el pressupost\",\n \"store/b2b-quotes.create.error\": \"S'ha produït un error en desar el pressupost\",\n \"store/b2b-quotes.create.required\": \"Introduïu un nom per al pressupost\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"Nom del pressupost\",\n \"store/b2b-quotes.create.empty-state-label\": \"Per crear un pressupost, comenceu a afegir articles al carretó.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{caràcter restant}=500{s'ha arribat al límit de 500 caràcters}other{caràcters restants}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"Desa-ho més endavant\",\n \"store/b2b-quotes.create.button.request-quote\": \"Sol·licita un pressupost\",\n \"store/b2b-quotes.back\": \"Enrere\",\n \"store/b2b-quotes.error.notAuthenticated\": \"Inicieu la sessió per veure aquest contingut.\",\n \"store/b2b-quotes.error.notPermitted\": \"No teniu els permisos necessaris per veure aquest contingut.\",\n \"store/b2b-quotes.quotes-table.title\": \"Els meus pressuposts\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"Pressupost nou\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"No s'ha trobat cap pressupost.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"Informació\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"Nom de la referència\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"Subtotal\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"Creat per\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"Creat el\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"Data de venciment\",\n \"store/b2b-quotes.quotes-table.status.title\": \"Estat\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"Darrera actualització\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"Organització\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"Centre de costs\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"Organització i centre de costs\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"Cerca organitzacions...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"Cerca centres de costs...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"Mostra les files\",\n \"store/b2b-quotes.quotes-table.of\": \"de\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"Cerca\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"Commuta els camps visibles\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"Mostra-ho tot\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"Amaga-ho tot\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"Esborra els filtres\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"Estat\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"Tot\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"Cap\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"Qualsevol\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"és\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"inclou\",\n \"store/b2b-quotes.quote-details.title\": \"Informació del pressupost\",\n \"store/b2b-quotes.quote-details.decline\": \"Rebutja\",\n \"store/b2b-quotes.quote-details.save\": \"Desa el pressupost\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"Envia-ho al representant de vendes\",\n \"store/b2b-quotes.quote-details.use-quote\": \"Utilitza el pressupost\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"Subtotal\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"Data de venciment\",\n \"store/b2b-quotes.quote-details.status.title\": \"Estat\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"Imatge\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"Codi de la referència\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"Nom\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"Quantitat\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"Preu\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"Total\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"Aplica el percentatge de descompte\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"Apliqueu un percentatge de descompte al subtotal del pressupost. Tingueu en compte que se sobreescriuran els canvis fets als preus dels SKU individuals.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"El percentatge de descompte no està disponible perquè en una promoció ja s'aplica un descompte superior al descompte manual màxim.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"Es rebutjaran automàticament els descomptes manuals superiors a {maxDiscount}%.\",\n \"store/b2b-quotes.quote-details.products.title\": \"Productes ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"Les notes es poden afegir després de crear les cometes.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"Actualitza l'historial\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, =0{creat}other{actualitzat}} el {date} per {email} ({role}) amb l'estat {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"Notes:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"Afegeix una nota\",\n \"store/b2b-quotes.quote-details.update-success\": \"S'ha desat correctament el pressupost\",\n \"store/b2b-quotes.quote-details.update-error\": \"S'ha produït un error en desar el pressupost. Per obtenir-ne més informació, consulteu la consola.\",\n \"store/b2b-quotes.quote-details.use-error\": \"S'ha produït un error en utilitzar el pressupost. Per obtenir-ne més informació, consulteu la consola.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"Alguns descomptes són superiors als permesos\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"Percentatge de descompte\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"Subtotal original\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"Preu original\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"Preu pressupostat\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"Subtotal pressupostat\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"Canvia la data de venciment\",\n \"store/b2b-quotes.quote-locking.title\": \"Pressupost en ús\",\n \"store/b2b-quotes.quote-locking.message\": \"Actualment, el carretó conté articles d'un pressupost i no es pot modificar. Podeu tornar a la pàgina del procés de pagament o buidar el carretó per continuar explorant.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"Torna al procés de pagament\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"Buida el carretó\",\n \"store/b2b-quotes.quote-status.ready\": \"A punt\",\n \"store/b2b-quotes.quote-status.placed\": \"Col·locat\",\n \"store/b2b-quotes.quote-status.revised\": \"Revisat\",\n \"store/b2b-quotes.quote-status.pending\": \"Pendent\",\n \"store/b2b-quotes.quote-status.expired\": \"Vençut\",\n \"store/b2b-quotes.quote-status.declined\": \"Rebutjat\"\n}\n\n```"
}
] |
code_b2b-quotes_155f56d8
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/context.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"B2B Quotes\",\n \"admin/b2b-quotes.navigation.keywords\": \"b2b, quote, quotes, cart, carts, expiration\",\n \"admin/b2b-quotes.settings.title\": \"B2B Quotes Settings\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"Failed to save settings\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"Settings saved\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"Default expiration period (in days) for quotes and saved carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"Quote Management for Marketplace\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"Configure how quotes are managed in the marketplace.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"Who is responsible for managing quotes?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"Marketplace\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"Only the main marketplace manages quotes.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"Sellers\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"Sellers manage quotes for their own products and can choose not to account quotes.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"Save Settings\",\n \"store/b2b-quotes.myAccountLink\": \"Quotes and Saved Carts\",\n \"store/b2b-quotes.create.title\": \"Create Quote\",\n \"store/b2b-quotes.create.nameLabel\": \"Name\",\n \"store/b2b-quotes.create.descriptionLabel\": \"Notes\",\n \"store/b2b-quotes.create.success\": \"Quote created successfuly\",\n \"store/b2b-quotes.create.error\": \"Error creating quote\",\n \"store/b2b-quotes.create.required\": \"Type a name for your quote\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"Quotation name\",\n \"store/b2b-quotes.create.empty-state-label\": \"To create a quote, start by adding items to your cart.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{character left}=500{500 characters limit reached}other{characters left}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"Save For Later\",\n \"store/b2b-quotes.create.button.request-quote\": \"Request Quote\",\n \"store/b2b-quotes.back\": \"Back\",\n \"store/b2b-quotes.error.notAuthenticated\": \"Please log in to view this content.\",\n \"store/b2b-quotes.error.notPermitted\": \"You do not have the necessary permissions to view this content.\",\n \"store/b2b-quotes.quotes-table.title\": \"My Quotes and Carts\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"New Quote\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"No quotes found.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"Details\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"Ref. Name\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"Subtotal\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"Created by\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"Created on\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"Expiration\",\n \"store/b2b-quotes.quotes-table.status.title\": \"Status\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"Last Update\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"Organization\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"Cost Center\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"Org & Cost Center\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"Search organizations...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"Search cost centers...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"Show rows\",\n \"store/b2b-quotes.quotes-table.of\": \"of\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"Search\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"Toggle visible fields\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"Show all\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"Hide all\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"Clear filters\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"Status\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"All\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"None\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"Any\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"is\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"includes\",\n \"store/b2b-quotes.quote-details.title\": \"Quote Details\",\n \"store/b2b-quotes.quote-details.decline\": \"Decline\",\n \"store/b2b-quotes.quote-details.save\": \"Save Quote\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"Submit to Sales Rep\",\n \"store/b2b-quotes.quote-details.use-quote\": \"Use Quote\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"Subtotal\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"Expiration\",\n \"store/b2b-quotes.quote-details.status.title\": \"Status\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"Image\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"Ref. Code\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"Name\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"Quantity\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"Price\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"Total\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"Apply Percentage Discount\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"Apply a percentage discount to the quote subtotal. Note: this will override any changes made to individual SKU prices.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"Percentage discount is disabled because a promotion is already applying a discount higher than the maximum manual discount.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"Manual discounts above {maxDiscount}% will be automatically denied.\",\n \"store/b2b-quotes.quote-details.products.title\": \"Products ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"Notes can be added after the quotes has been created.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"Update History\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, =0{Created}other{Updated}} on {date} by {email} ({role}) with status {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"Notes:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"Add Note\",\n \"store/b2b-quotes.quote-details.update-success\": \"Quote saved successfully.\",\n \"store/b2b-quotes.quote-details.update-error\": \"Error saving quote. See console for more details.\",\n \"store/b2b-quotes.quote-details.use-error\": \"Error using quote. See console for more details.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"There are some discounts higher than allowed.\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"Percentage Discount\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"Original Subtotal\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"Original Price\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"Quoted Price\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"Quoted Subtotal\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"Expiration Date Change\",\n \"store/b2b-quotes.quote-locking.title\": \"Quote in Use\",\n \"store/b2b-quotes.quote-locking.message\": \" Your cart currently contains items from a quote and therefore cannot be modified. You may either return to checkout or clear your cart to continue browsing.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"Return to Checkout\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"Clear Cart\",\n \"store/b2b-quotes.quote-status.ready\": \"ready\",\n \"store/b2b-quotes.quote-status.placed\": \"placed\",\n \"store/b2b-quotes.quote-status.revised\": \"revised\",\n \"store/b2b-quotes.quote-status.pending\": \"pending\",\n \"store/b2b-quotes.quote-status.expired\": \"expired\",\n \"store/b2b-quotes.quote-status.declined\": \"declined\"\n}\n\n```"
}
] |
code_b2b-quotes_01443b50
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/ko.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"B2B 견적\",\n \"admin/b2b-quotes.navigation.keywords\": \"b2b, 견적, 견적, 장바구니, 장바구니, 만료\",\n \"admin/b2b-quotes.settings.title\": \"B2B 견적 설정\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"설정을 저장하지 못했습니다.\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"설정이 성공적으로 저장되었습니다.\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"견적 및 저장된 장바구니의 기본 만료 기간(일)\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"마켓플레이스를 위한 견적 관리\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"마켓플레이스에서 견적이 관리되는 방식을 구성합니다.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"누가 견적 관리를 담당합니까?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"마켓플레이스\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"주요 마켓플레이스만 견적을 관리합니다.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"판매자\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"판매자는 자신의 제품 견적을 관리하며, 견적을 제외하도록 선택할 수 있습니다.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"설정 저장\",\n \"store/b2b-quotes.myAccountLink\": \"견적 및 저장된 장바구니\",\n \"store/b2b-quotes.create.title\": \"견적 생성\",\n \"store/b2b-quotes.create.nameLabel\": \"이름\",\n \"store/b2b-quotes.create.descriptionLabel\": \"메모\",\n \"store/b2b-quotes.create.success\": \"견적이 성공적으로 저장되었습니다.\",\n \"store/b2b-quotes.create.error\": \"견적 저장 중 오류\",\n \"store/b2b-quotes.create.required\": \"견적의 이름을 입력하세요.\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"견적 이름\",\n \"store/b2b-quotes.create.empty-state-label\": \"견적을 작성하려면 장바구니에 항목을 추가하세요.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{남은 문자}=500{500자 제한에 도달했습니다.}other{남은 문자}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"나중을 위해 저장\",\n \"store/b2b-quotes.create.button.request-quote\": \"견적 요청\",\n \"store/b2b-quotes.back\": \"뒤로 가기\",\n \"store/b2b-quotes.error.notAuthenticated\": \"이 콘텐츠를 보려면 로그인하세요.\",\n \"store/b2b-quotes.error.notPermitted\": \"이 콘텐츠를 보는 데 필요한 권한이 없습니다.\",\n \"store/b2b-quotes.quotes-table.title\": \"내 견적\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"새 견적\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"견적를 찾을 수 없습니다.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"세부 사항\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"참조 이름\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"소계\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"만든이\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"생성일\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"만료 날짜\",\n \"store/b2b-quotes.quotes-table.status.title\": \"상태\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"마지막 업데이트\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"조직\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"비용 센터\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"조직 & 비용 센터\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"조직 검색...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"비용 센터 검색...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"행 표시\",\n \"store/b2b-quotes.quotes-table.of\": \"/\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"검색\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"표시 필드 전환\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"모두 표시\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"모두 숨기기\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"필터 지우기\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"상태\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"모두\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"없음\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"모두\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"은/는\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"포함\",\n \"store/b2b-quotes.quote-details.title\": \"견적 세부 정보\",\n \"store/b2b-quotes.quote-details.decline\": \"거부\",\n \"store/b2b-quotes.quote-details.save\": \"견적 저장\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"영업 담당자에게 제출\",\n \"store/b2b-quotes.quote-details.use-quote\": \"견적 사용\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"소계\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"만료 날짜\",\n \"store/b2b-quotes.quote-details.status.title\": \"상태\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"이미지\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"참조 코드\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"이름\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"수량\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"가격\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"합계\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"백분율 할인 적용\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"견적 소계에 백분율 할인을 적용합니다. 이는 개별 SKU 가격에 대한 모든 변경 사항보다 우선 적용됩니다.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"프로모션에서 이미 최대 수동 할인보다 높은 할인을 적용하고 있으므로 백분율 할인을 사용할 수 없습니다.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"{maxDiscount}%를 초과하는 수동 할인은 자동으로 거부됩니다.\",\n \"store/b2b-quotes.quote-details.products.title\": \"사항 ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"견적을 작성한 후에 메모를 추가할 수 있습니다.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"기록 업데이트\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, =0{생성됨.}other{업데이트됨.}} 날짜: {date} 이메일: {email}({role}) 상태: {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"메모:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"메모 추가\",\n \"store/b2b-quotes.quote-details.update-success\": \"견적이 성공적으로 저장되었습니다.\",\n \"store/b2b-quotes.quote-details.update-error\": \"견적을 저장하는 동안 오류가 발생했습니다. 자세한 내용은 콘솔을 참조하세요.\",\n \"store/b2b-quotes.quote-details.use-error\": \"견적을 사용하는 동안 오류가 발생했습니다. 자세한 내용은 콘솔을 참조하세요.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"일부 할인은 허용된 것보다 높습니다.\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"백분율 할인\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"원래 소계\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"원래 가격\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"견적 가격\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"견적 소계\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"만료 날짜 변경\",\n \"store/b2b-quotes.quote-locking.title\": \"사용 중인 견적\",\n \"store/b2b-quotes.quote-locking.message\": \"현재 장바구니에 견적서의 품목이 포함되어 있으며 수정할 수 없습니다. 결제 페이지로 돌아가거나 장바구니를 지우고 계속 탐색할 수 있습니다.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"결제로 돌아가기\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"장바구니 지우기\",\n \"store/b2b-quotes.quote-status.ready\": \"준비\",\n \"store/b2b-quotes.quote-status.placed\": \"배치됨\",\n \"store/b2b-quotes.quote-status.revised\": \"수정됨\",\n \"store/b2b-quotes.quote-status.pending\": \"보류 중\",\n \"store/b2b-quotes.quote-status.expired\": \"만료됨\",\n \"store/b2b-quotes.quote-status.declined\": \"거부됨\"\n}\n\n```"
}
] |
code_b2b-quotes_2496b795
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/cs.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"B2B nabídky\",\n \"admin/b2b-quotes.navigation.keywords\": \"b2b, nabídka, nabídky, košík, košíky, vypršení platnosti\",\n \"admin/b2b-quotes.settings.title\": \"Nastavení nabídek B2B\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"Uložení nastavení se nezdařilo\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"Nastavení bylo úspěšně uloženo\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"Výchozí doba platnosti (v dnech) pro nabídky a uložené košíky\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"Správa nabídek pro tržiště\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"Konfigurujte, jak jsou nabídky spravovány na tržišti.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"Kdo je zodpovědný za správu nabídek?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"Tržiště\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"Nabídky spravuje pouze hlavní tržiště.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"Prodejci\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"Prodejci spravují nabídky pro své produkty a mohou se rozhodnout je nezahrnovat.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"Uložit nastavení\",\n \"store/b2b-quotes.myAccountLink\": \"Nabídky a uložené košíky\",\n \"store/b2b-quotes.create.title\": \"Vytvořit nabídku\",\n \"store/b2b-quotes.create.nameLabel\": \"Název\",\n \"store/b2b-quotes.create.descriptionLabel\": \"Poznámky\",\n \"store/b2b-quotes.create.success\": \"Nabídka úspěšně uložena\",\n \"store/b2b-quotes.create.error\": \"Chyba při ukládání nabídky\",\n \"store/b2b-quotes.create.required\": \"Zadejte název své nabídky\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"Název nabídky\",\n \"store/b2b-quotes.create.empty-state-label\": \"Pro vytvoření nabídky začněte přidávat položky do košíku.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{zbývajících znaků}=500{dosažen limit 500 znaků}other{zbývá znaků}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"Uložit na později\",\n \"store/b2b-quotes.create.button.request-quote\": \"Požádat o nabídku\",\n \"store/b2b-quotes.back\": \"Zpět\",\n \"store/b2b-quotes.error.notAuthenticated\": \"Pro zobrazení tohoto obsahu se prosím přihlaste.\",\n \"store/b2b-quotes.error.notPermitted\": \"K zobrazení tohoto obsahu nemáte potřebná oprávnění.\",\n \"store/b2b-quotes.quotes-table.title\": \"Moje nabídky\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"Nová nabídka\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"Nebyly nalezeny žádné nabídky.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"Podrobnosti\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"Referenční název\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"Mezisoučet\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"Vytvořil\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"Vytvořeno dne\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"Datum expirace\",\n \"store/b2b-quotes.quotes-table.status.title\": \"Stav\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"Poslední aktualizace\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"Organizace\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"Nákladové středisko\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"Organizace a nákladové středisko\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"Hledat organizace...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"Hledat nákladová střediska...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"Zobrazit řádky\",\n \"store/b2b-quotes.quotes-table.of\": \"z\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"Hledat\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"Přepnout viditelná pole\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"Zobrazit vše\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"Skrýt vše\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"Vymazat filtry\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"Stav\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"Vše\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"Žádné\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"Jakékoliv\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"je\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"obsahuje\",\n \"store/b2b-quotes.quote-details.title\": \"Podrobnosti nabídky\",\n \"store/b2b-quotes.quote-details.decline\": \"Odmítnout\",\n \"store/b2b-quotes.quote-details.save\": \"Uložit nabídku\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"Odeslat obchodnímu zástupci\",\n \"store/b2b-quotes.quote-details.use-quote\": \"Použít nabídku\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"Mezisoučet\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"Datum expirace\",\n \"store/b2b-quotes.quote-details.status.title\": \"Stav\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"Obrázek\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"Referenční kód\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"Název\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"Množství\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"Cena\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"Celkem\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"Uplatnit procentuální slevu\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"Uplatnit procentuální slevu na mezisoučet nabídky. Všimněte si, že touto akcí přepíšete veškeré změny provedené u cen jednotlivých SKU.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"Procentuální sleva není k dispozici, protože v rámci propagační akce už je uplatněna sleva vyšší než maximální manuální sleva.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"Manuální slevy nad {maxDiscount} % budou automaticky zamítnuty.\",\n \"store/b2b-quotes.quote-details.products.title\": \"Produkty ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"Poznámky lze přidávat po vytvoření uvozovek.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"Historie aktualizací\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, =0{Vytvořeno}other{Aktualizováno}} dne {date} uživatelem {email} ({role}) se stavem {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"Poznámky:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"Přidat poznámku\",\n \"store/b2b-quotes.quote-details.update-success\": \"Nabídka úspěšně uložena\",\n \"store/b2b-quotes.quote-details.update-error\": \"Chyba při ukládání nabídky. Podrobnosti naleznete v konzoli.\",\n \"store/b2b-quotes.quote-details.use-error\": \"Chyba při ukládání nabídky. Podrobnosti naleznete v konzoli.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"Některé slevy jsou vyšší než povolené\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"Procentuální sleva\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"Původní mezisoučet\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"Původní cena\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"Nabízená cena\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"Nabízený mezisoučet\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"Změnit datum vypršení platnosti\",\n \"store/b2b-quotes.quote-locking.title\": \"Nabídka se používá\",\n \"store/b2b-quotes.quote-locking.message\": \"Váš košík aktuálně obsahuje položky z nabídky a nemůže být měněn. Pokud chcete pokračovat v prohlížení, můžete se buď vrátit na stránku pokladny, nebo vymazat košík.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"Zpátky k pokladně\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"Vymazat košík\",\n \"store/b2b-quotes.quote-status.ready\": \"Připraven\",\n \"store/b2b-quotes.quote-status.placed\": \"Zadáno\",\n \"store/b2b-quotes.quote-status.revised\": \"Revidováno\",\n \"store/b2b-quotes.quote-status.pending\": \"Příprava\",\n \"store/b2b-quotes.quote-status.expired\": \"Vypršelo\",\n \"store/b2b-quotes.quote-status.declined\": \"Zamítnuto\"\n}\n\n```"
}
] |
code_b2b-quotes_a33cfad6
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/no.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"B2B-tilbud\",\n \"admin/b2b-quotes.navigation.keywords\": \"b2b, tilbud, tilbud, handlekurv, handlekurv, utløp\",\n \"admin/b2b-quotes.settings.title\": \"Innstillinger for B2B-tilbud\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"Kunne ikke lagre innstillinger\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"Innstillinger lagret\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"Standard utløpsperiode (i dager) for tilbud og lagrede handlekurver\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"Tilbudsadministrasjon for markedsplassen\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"Konfigurer hvordan tilbud administreres på markedsplassen.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"Hvem er ansvarlig for å administrere tilbud?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"Markedsplassen\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"Kun hovedmarkedsplassen administrerer tilbud.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"Selgere\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"Selgere administrerer tilbud for sine egne produkter og kan velge å ikke inkludere tilbud.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"Lagre innstillinger\",\n \"store/b2b-quotes.myAccountLink\": \"Tilbud og lagrede handlekurver\",\n \"store/b2b-quotes.create.title\": \"Opprett tilbud\",\n \"store/b2b-quotes.create.nameLabel\": \"Navn\",\n \"store/b2b-quotes.create.descriptionLabel\": \"Notater\",\n \"store/b2b-quotes.create.success\": \"Tilbudet ble lagret\",\n \"store/b2b-quotes.create.error\": \"Feil under lagring av tilbud\",\n \"store/b2b-quotes.create.required\": \"Angi et navn for tilbudet\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"Tilbudsnavn\",\n \"store/b2b-quotes.create.empty-state-label\": \"Begynn å legge til produkter i handlekurven for å opprette et tilbud.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{tegn igjen}=500{grensen på 500 tegn er nådd}other{tegn igjen}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"Lagre til senere\",\n \"store/b2b-quotes.create.button.request-quote\": \"Be om tilbud\",\n \"store/b2b-quotes.back\": \"Tilbake\",\n \"store/b2b-quotes.error.notAuthenticated\": \"Logg inn for å se dette innholdet.\",\n \"store/b2b-quotes.error.notPermitted\": \"Du har ikke nødvendige rettigheter til å se dette innholdet.\",\n \"store/b2b-quotes.quotes-table.title\": \"Mine tilbud\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"Nytt tilbud\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"Fant ingen tilbud.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"Detaljer\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"Ref. navn\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"Delsum\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"Opprettet av\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"Opprettet den\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"Utløpsdato\",\n \"store/b2b-quotes.quotes-table.status.title\": \"Status\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"Siste oppdatering\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"Organisasjon\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"Kostnadssenter\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"Organisasjon og kostnadssenter\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"Søk i organisasjoner...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"Søk i kostnadssentre...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"Vis rader\",\n \"store/b2b-quotes.quotes-table.of\": \"av\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"Søk\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"Vis/skjul synlige felter\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"Vis alle\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"Skjul alle\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"Tøm filtre\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"Status\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"Alle\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"Ingen\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"Noen\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"er\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"inkluderer\",\n \"store/b2b-quotes.quote-details.title\": \"Tilbudsdetaljer\",\n \"store/b2b-quotes.quote-details.decline\": \"Avvis\",\n \"store/b2b-quotes.quote-details.save\": \"Lagre tilbud\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"Send inn til selger\",\n \"store/b2b-quotes.quote-details.use-quote\": \"Bruk tilbud\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"Delsum\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"Utløpsdato\",\n \"store/b2b-quotes.quote-details.status.title\": \"Status\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"Bilde\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"Referansekode\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"Navn\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"Antall\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"Pris\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"Total\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"Bruk prosentvis rabatt\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"Bruk en prosentvis rabatt på delsummen for tilbudet. Merk at dette vil overstyre eventuelle endringer som er gjort i individuelle SKU-priser.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"Prosentrabatt er ikke tilgjengelig fordi en kampanje allerede bruker en rabatt som er høyere enn den maksimale manuelle rabatten.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"Manuelle rabatter over {maxDiscount}% blir automatisk avvist.\",\n \"store/b2b-quotes.quote-details.products.title\": \"Produkter ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"Notater kan legges til etter at sitatene er opprettet.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"Oppdater historikk\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, =0{Opprettet}other{Oppdatert}} den {date} av {email} ({role}) med status {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"Notater:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"Legg til notat\",\n \"store/b2b-quotes.quote-details.update-success\": \"Tilbudet ble lagret\",\n \"store/b2b-quotes.quote-details.update-error\": \"Feil ved lagring av tilbud. Se konsoll for mer informasjon.\",\n \"store/b2b-quotes.quote-details.use-error\": \"Feil ved bruk av tilbud. Se konsoll for mer informasjon.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"Noen rabatter er høyere enn tillatt\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"Prosentrabatt\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"Opprinnelig delsum\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"Opprinnelig pris\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"Tilbudt pris\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"Delsum tilbud\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"Endre utløpsdato\",\n \"store/b2b-quotes.quote-locking.title\": \"Tilbud i bruk\",\n \"store/b2b-quotes.quote-locking.message\": \"Handlekurven din inneholder for øyeblikket varer fra et tilbud og kan ikke endres. Du kan enten gå tilbake til betalingssiden eller tømme handlekurven for å fortsette å surfe.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"Tilbake til kassen\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"Tøm handlekurv\",\n \"store/b2b-quotes.quote-status.ready\": \"Klar\",\n \"store/b2b-quotes.quote-status.placed\": \"Bestilt\",\n \"store/b2b-quotes.quote-status.revised\": \"Revidert\",\n \"store/b2b-quotes.quote-status.pending\": \"Ventende\",\n \"store/b2b-quotes.quote-status.expired\": \"Utløpt\",\n \"store/b2b-quotes.quote-status.declined\": \"Avvist\"\n}\n\n```"
}
] |
code_b2b-quotes_98edddb9
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/da.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"B2B tilbud\",\n \"admin/b2b-quotes.navigation.keywords\": \"b2b, tilbud, tilbud, kurv, kurve, udløb\",\n \"admin/b2b-quotes.settings.title\": \"Indstillinger for B2B tilbud\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"Kunne ikke gemme indstillinger\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"Indstillinger blev gemt\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"Standard udløbsperiode (i dage) for tilbud og gemte kurve\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"Tilbudsadministration for markedspladsen\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"Konfigurer, hvordan tilbud håndteres på markedspladsen.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"Hvem er ansvarlig for at administrere tilbud?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"Markedspladsen\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"Kun hovedmarkedspladsen administrerer tilbud.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"Sælgere\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"Sælgere administrerer tilbud for deres egne produkter og kan vælge ikke at inkludere tilbud.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"Gem indstillinger\",\n \"store/b2b-quotes.myAccountLink\": \"Tilbud og gemte indkøbskurve\",\n \"store/b2b-quotes.create.title\": \"Opret tilbud\",\n \"store/b2b-quotes.create.nameLabel\": \"Navn\",\n \"store/b2b-quotes.create.descriptionLabel\": \"Noter\",\n \"store/b2b-quotes.create.success\": \"Tilbud blev gemt\",\n \"store/b2b-quotes.create.error\": \"Fejl ved gemning af tilbud\",\n \"store/b2b-quotes.create.required\": \"Indtast et navn på dit tilbud\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"Tilbudsnavn\",\n \"store/b2b-quotes.create.empty-state-label\": \"For at oprette et tilbud skal du begynde at tilføje varer til din indkøbskurv.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{tegn tilbage}=500{500-grænse for tegn nået}other{tegn tilbage}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"Gem til senere\",\n \"store/b2b-quotes.create.button.request-quote\": \"Anmod om tilbud\",\n \"store/b2b-quotes.back\": \"Tilbage\",\n \"store/b2b-quotes.error.notAuthenticated\": \"Log venligst ind for at se dette indhold.\",\n \"store/b2b-quotes.error.notPermitted\": \"Du har ikke de nødvendige tilladelser til at se dette indhold.\",\n \"store/b2b-quotes.quotes-table.title\": \"Mine tilbud\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"Nyt tilbud\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"Ingen tilbud fundet.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"Detaljer\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"Ref. navn\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"Subtotal\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"Oprettet af\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"Oprettet den\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"Udløbsdato\",\n \"store/b2b-quotes.quotes-table.status.title\": \"Status\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"Sidste opdatering\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"Organisation\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"Omkostningscenter\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"Org. & Omkostningscenter\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"Søg i organisationer...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"Søg i omkonstningscentre...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"Vis rækker\",\n \"store/b2b-quotes.quotes-table.of\": \"af\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"Søg\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"Vis synlige felter\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"Vis alle\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"Skjul alle\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"Ryd filtre\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"Status\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"Alle\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"Ingen\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"Enhver\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"er\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"inkluderer\",\n \"store/b2b-quotes.quote-details.title\": \"Tilbudsdetaljer\",\n \"store/b2b-quotes.quote-details.decline\": \"Afvis\",\n \"store/b2b-quotes.quote-details.save\": \"Gem tilbud\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"Indsend til salgsrep\",\n \"store/b2b-quotes.quote-details.use-quote\": \"Brug tilbud\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"Subtotal\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"Udløbsdato\",\n \"store/b2b-quotes.quote-details.status.title\": \"Status\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"Billede\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"Ref. kode\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"Navn\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"Antal\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"Pris\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"I alt\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"Anvend rabat i procent\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"Anvend en procentrabat til tilbudssubtotalen. Bemærk, at dette vil tilsidesætte eventuelle ændringer af individuelle SKU-priser.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"Procentrabat er ikke tilgængelig, da en kampagne allerede anvender en rabat, som er højere end den maksimale manuelle rabat.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"Manuelle rabatter over {maxDiscount}% vil automatisk blive afvist.\",\n \"store/b2b-quotes.quote-details.products.title\": \"Produkter ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"Noter kan tilføjes efter citaterne er oprettet.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"Opdateringshistorik\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, =0{Oprettet}other{Opdateret}} den {date} af {email} ({role}) med status {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"Noter:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"Tilføj note\",\n \"store/b2b-quotes.quote-details.update-success\": \"Tilbud blev gemt\",\n \"store/b2b-quotes.quote-details.update-error\": \"Fejl under gemning af tilbud. Se konsollen for flere detaljer.\",\n \"store/b2b-quotes.quote-details.use-error\": \"Fejl under brug af tilbud. Se konsollen for flere detaljer.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"Nogle rabatter er højere end tilladt\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"Procentrabat\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"Original subtotal\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"Original pris\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"Tilbudt pris\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"Tilbudt subtotal\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"Skift udløbsdato\",\n \"store/b2b-quotes.quote-locking.title\": \"Tilbud i brug\",\n \"store/b2b-quotes.quote-locking.message\": \"Din indkøbskurv indeholder i øjeblikket varer fra et tilbud og kan derfor ikke ændres. Du kan gå tilbage til betalingssiden eller tømme din indkøbskurv for at fortsætte med at browse.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"Tilbage til udtjekning\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"Ryd kurv\",\n \"store/b2b-quotes.quote-status.ready\": \"Klar\",\n \"store/b2b-quotes.quote-status.placed\": \"Placeret\",\n \"store/b2b-quotes.quote-status.revised\": \"Revideret\",\n \"store/b2b-quotes.quote-status.pending\": \"Afventer\",\n \"store/b2b-quotes.quote-status.expired\": \"Udløbet\",\n \"store/b2b-quotes.quote-status.declined\": \"Afvist\"\n}\n\n```"
}
] |
code_b2b-quotes_bddaff0d
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/th.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"การเสนอราคา B2B\",\n \"admin/b2b-quotes.navigation.keywords\": \"b2b, quote, การเสนอราคา, ล้อเข็น, หมดอายุ\",\n \"admin/b2b-quotes.settings.title\": \"การตั้งค่าการเสนอราคา B2B\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"บันทึกการตั้งค่าไม่สำเร็จ\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"บันทึกการตั้งค่าเรียบร้อยแล้ว\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"ค่าเริ่มต้นระยะเวลาหมดอายุ (วัน) สำหรับการเสนอราคาและล้อเข็นที่บันทึกไว้\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"การจัดการใบเสนอราคาสำหรับตลาด\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"กำหนดวิธีจัดการใบเสนอราคาในตลาด\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"ใครรับผิดชอบในการจัดการใบเสนอราคา?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"ตลาด\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"เฉพาะตลาดหลักเท่านั้นที่จัดการใบเสนอราคา\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"ผู้ขาย\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"ผู้ขายจัดการใบเสนอราคาสำหรับสินค้าของตนเองและสามารถเลือกไม่คำนวณใบเสนอราคาได้\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"บันทึกการตั้งค่า\",\n \"store/b2b-quotes.myAccountLink\": \"การเสนอราคาและล้อเข็นที่บันทึกไว้\",\n \"store/b2b-quotes.create.title\": \"สร้างการเสนอราคา\",\n \"store/b2b-quotes.create.nameLabel\": \"ชื่อ\",\n \"store/b2b-quotes.create.descriptionLabel\": \"หมายเหตุ\",\n \"store/b2b-quotes.create.success\": \"บันทึกการเสนอราคาเรียบร้อยแล้ว\",\n \"store/b2b-quotes.create.error\": \"ผิดพลาดขณะบันทึกการเสนอราคา\",\n \"store/b2b-quotes.create.required\": \"ใส่ชื่อสำหรับการเสนอราคาของคุณ\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"ชื่อการเสนอราคา\",\n \"store/b2b-quotes.create.empty-state-label\": \"เพื่อสร้างการเสนอราคา ให้เริ่มเพิ่มสินค้าไปยังล้อเข็นของคุณ\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499 {อักขระที่เหลือ}=500{500-เป็นขีดจำกัดจำนวนอักขระ}other {อักขระที่เหลือ}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"บันทึกเพื่อใช้ภายหลัง\",\n \"store/b2b-quotes.create.button.request-quote\": \"ขอการเสนอราคา\",\n \"store/b2b-quotes.back\": \"กลับ\",\n \"store/b2b-quotes.error.notAuthenticated\": \"โปรดล็อกอินเพื่อดูคอนเทนต์นี้\",\n \"store/b2b-quotes.error.notPermitted\": \"คุณไม่ได้รับสิทธิ์ให้ดูคอนเทนต์นี้\",\n \"store/b2b-quotes.quotes-table.title\": \"การเสนอราคาของฉัน\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"การเสนอราคาใหม่\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"ไม่พบการเสนอราคา\",\n \"store/b2b-quotes.quotes-table.details.label\": \"รายละเอียด\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"ชื่ออ้างอิง\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"ยอดรวมย่อย\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"สร้างโดย\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"สร้างเมื่อ\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"วันที่หมดอายุ\",\n \"store/b2b-quotes.quotes-table.status.title\": \"สถานะ\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"อัปเดตล่าสุด\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"องค์กร\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"ศูนย์ต้นทุน\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"องค์กรและศูนย์ต้นทุน\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"ค้นหาองค์กร...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"ค้นหาศูนย์ต้นทุน...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"แสดงแถว\",\n \"store/b2b-quotes.quotes-table.of\": \"ของ\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"ค้นหา\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"สลับฟิลด์ข้อมูลที่มองเห็นได้\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"แสดงทั้งหมด\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"ซ่อนทั้งหมด\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"ล้างตัวกรอง\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"สถานะ\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"ทั้งหมด\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"ไม่มี\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"ใด ๆ\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"เป็น\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"รวมถึง\",\n \"store/b2b-quotes.quote-details.title\": \"รายละเอียดการเสนอราคา\",\n \"store/b2b-quotes.quote-details.decline\": \"ปฏิเสธ\",\n \"store/b2b-quotes.quote-details.save\": \"บันทึกการเสนอราคา\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"ส่งไปยังตัวแทนขาย\",\n \"store/b2b-quotes.quote-details.use-quote\": \"ใช้การเสนอราคา\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"ยอดรวมย่อย\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"วันที่หมดอายุ\",\n \"store/b2b-quotes.quote-details.status.title\": \"สถานะ\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"ภาพ\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"โค้ดอ้างอิง\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"ชื่อ\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"จำนวน\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"ราคา\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"ยอดรวม\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"ใช้ส่วนลดเป็นเปอร์เซ็นต์\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"ใช้ส่วนลดเป็นเปอร์เซ็นต์สำหรับยอดรวมย่อย หมายเหตุ: การทำรายการนี้จะแทนที่การเปลี่ยนแปลงใด ๆ ของราคา SKU แต่ละตัว\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"ไม่มีส่วนลดเป็นเปอร์เซ็นต์เนื่องจากมีโปรโมชันที่ให้ส่วนลดมากกว่าส่วนลดสูงสุดแบบแมนวลอยู่แล้ว\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"ส่วนลดแบบแมนวลที่เกินกว่า {maxDiscount}% จะถูกยกเลิกโดยอัตโนมัติ\",\n \"store/b2b-quotes.quote-details.products.title\": \"สินค้า ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"สามารถเพิ่มหมายเหตุได้หลังจากสร้างคำพูดแล้ว\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"ประวัติการอัปเดต\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, =0{สร้างแล้ว}other{อัปเดตแล้ว}}เมื่อ {date} โดย {email} ({role}) พร้อมสถานะ {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"หมายเหตุ:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"เพิ่มหมายเหตุ\",\n \"store/b2b-quotes.quote-details.update-success\": \"บันทึกการเสนอราคาเรียบร้อยแล้ว\",\n \"store/b2b-quotes.quote-details.update-error\": \"มีข้อผิดพลาดขณะบันทึกการเสนอราคา โปรดดูรายละเอียดในคอนโซล\",\n \"store/b2b-quotes.quote-details.use-error\": \"มีข้อผิดพลาดขณะใช้การเสนอราคา โปรดดูรายละเอียดในคอนโซล\",\n \"store/b2b-quotes.quote-details.discount-error\": \"ส่วนลดบางตัวสูงเกินกว่าที่อนุมัติ\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"ส่วนลดเป็นเปอร์เซ็นต์\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"ยอดรวมย่อยดั้งเดิม\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"ราคาดั้งเดิม\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"ราคาที่เสนอ\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"ยอดรวมย่อยที่เสนอ\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"เปลี่ยนวันหมดอายุ\",\n \"store/b2b-quotes.quote-locking.title\": \"กำลังใช้การเสนอราคา\",\n \"store/b2b-quotes.quote-locking.message\": \"ตอนนี้ล้อเข็นของคุณมีสินค้าจากการเสนอราคาและไม่สามารถเปลี่ยนแปลงได้ คุณสามารถกลับไปยังหน้าเช็คเอาต์หรือเคลียร์ล้อเข็นเพื่อทำรายการต่อ\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"กลับไปยังเช็คเอาต์\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"เคลียร์ล้อเข็น\",\n \"store/b2b-quotes.quote-status.ready\": \"พร้อมแล้ว\",\n \"store/b2b-quotes.quote-status.placed\": \"วางแล้ว\",\n \"store/b2b-quotes.quote-status.revised\": \"ตรวจแก้แล้ว\",\n \"store/b2b-quotes.quote-status.pending\": \"รอดำเนินการ\",\n \"store/b2b-quotes.quote-status.expired\": \"หมดอายุแล้ว\",\n \"store/b2b-quotes.quote-status.declined\": \"ปฏิเสธแล้ว\"\n}\n\n```"
}
] |
code_b2b-quotes_f202bcca
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/sv.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"B2B Offerter\",\n \"admin/b2b-quotes.navigation.keywords\": \"b2B, offert, offerter, varukorg, varukorgar, utgångsperiod\",\n \"admin/b2b-quotes.settings.title\": \"B2B Offertinställningar\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"Det gick inte att spara inställningarna\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"Inställningar har sparats\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"Standard utgångsperiod (i dagar) för offerter och sparade varukorgar\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"Quote Management for Marketplace\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"Configure how quotes are managed in the marketplace.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"Who is responsible for managing quotes?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"Marketplace\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"Only the main marketplace manages quotes.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"Sellers\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"Sellers manage quotes for their own products and can choose not to account quotes.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"Spara inställningar\",\n \"store/b2b-quotes.myAccountLink\": \"Offerter och sparade varukorgar\",\n \"store/b2b-quotes.create.title\": \"Skapa offert\",\n \"store/b2b-quotes.create.nameLabel\": \"Namn\",\n \"store/b2b-quotes.create.descriptionLabel\": \"Anteckningar\",\n \"store/b2b-quotes.create.success\": \"Offert sparades\",\n \"store/b2b-quotes.create.error\": \"Det gick inte att spara offert\",\n \"store/b2b-quotes.create.required\": \"Ange ett namn för din offert\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"Offertnamn\",\n \"store/b2b-quotes.create.empty-state-label\": \"För att skapa en offert, börja lägga till artiklar i din varukorg.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{tecken kvar}=500{500 tecken nådde}other{tecken kvar}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"Spara till senare\",\n \"store/b2b-quotes.create.button.request-quote\": \"Begär offert\",\n \"store/b2b-quotes.back\": \"Återgå\",\n \"store/b2b-quotes.error.notAuthenticated\": \"Logga in för att se detta innehåll.\",\n \"store/b2b-quotes.error.notPermitted\": \"Du har inte behörighet att se detta innehåll.\",\n \"store/b2b-quotes.quotes-table.title\": \"Mina offerter\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"Ny offert\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"Inga offerter hittades.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"Detaljer\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"Ref. Namn\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"Delbelopp\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"Skapad av\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"Skapad den\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"Utgångsdatum\",\n \"store/b2b-quotes.quotes-table.status.title\": \"Status\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"Senast uppdaterad\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"Organisation\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"Kostnadsställe\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"Org. & Kostnadsställe\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"Sök i organisationer...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"Sök i kostnadsställe...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"Visa rader\",\n \"store/b2b-quotes.quotes-table.of\": \"av\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"Sök\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"Växla synliga fält\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"Visa alla\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"Dölj alla\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"Rensa filter\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"Status\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"Alla\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"Ingen\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"Någon\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"är\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"inkluderar\",\n \"store/b2b-quotes.quote-details.title\": \"Offertuppgifter\",\n \"store/b2b-quotes.quote-details.decline\": \"Avvisa\",\n \"store/b2b-quotes.quote-details.save\": \"Spara offert\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"Skicka till försäljningsagent\",\n \"store/b2b-quotes.quote-details.use-quote\": \"Använd offert\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"Delbelopp\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"Utgångsdatum\",\n \"store/b2b-quotes.quote-details.status.title\": \"Status\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"Bild\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"Ref. Kod\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"Namn\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"Kvantitet\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"Pris\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"Totalt\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"Tillämpa procentrabatt\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"Tillämpa en procentuell rabatt på offerten delsumman. Obs: Detta kommer att åsidosätta eventuella ändringar i enskilda SKU priser.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"Procentrabatt är inaktiverad eftersom en kampanj redan tillämpar en rabatt högre än den maximala manuella rabatten.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"Manuella rabatter över {maxDiscount}% kommer automatiskt att avvisas.\",\n \"store/b2b-quotes.quote-details.products.title\": \"Produkter ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"Anteckningar kan läggas till efter att offerten har skapats.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"Uppdatera historik\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, =0{Skapad}other{Uppdaterad}} den {date} av {email} ({role}) med status {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"Anteckningar:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"Lägg till anteckning\",\n \"store/b2b-quotes.quote-details.update-success\": \"Offert sparades\",\n \"store/b2b-quotes.quote-details.update-error\": \"Kunde inte spara offert. Se konsolen för mer information.\",\n \"store/b2b-quotes.quote-details.use-error\": \"Kunde inte använda offert. Se konsolen för mer information.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"Vissa rabatter är högre än tillåtna\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"Procentuell rabatt\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"Ursprunglig delsumma\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"Ursprungspris\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"Offererat pris\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"Offererad delsumma\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"Ändra förfallodatum\",\n \"store/b2b-quotes.quote-locking.title\": \"Offert i bruk\",\n \"store/b2b-quotes.quote-locking.message\": \"Din varukorg innehåller för närvarande artiklar från en offert och kan inte ändras. Du kan antingen återvända till kassan eller rensa din kundvagn för att fortsätta surfa.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"Gå tillbaka till kassan\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"Töm varukorgen\",\n \"store/b2b-quotes.quote-status.ready\": \"Klar\",\n \"store/b2b-quotes.quote-status.placed\": \"Placerad\",\n \"store/b2b-quotes.quote-status.revised\": \"Reviderad\",\n \"store/b2b-quotes.quote-status.pending\": \"Väntande\",\n \"store/b2b-quotes.quote-status.expired\": \"Utgått\",\n \"store/b2b-quotes.quote-status.declined\": \"Avvisad\"\n}\n\n```"
}
] |
code_b2b-quotes_a60be197
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/es.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"Cotizaciones B2B\",\n \"admin/b2b-quotes.navigation.keywords\": \"b2b, cotización, cotizaciones, carrito, carritos, vencimiento\",\n \"admin/b2b-quotes.settings.title\": \"Configuración de cotizaciones B2B\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"No se pudo guardar la configuración\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"Configuración guardada con éxito\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"Periodo de vencimiento predeterminado (en días) para cotizaciones y carritos guardados\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"Gestión de cotizaciones para el mercado\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"Configura cómo se gestionan las cotizaciones en el mercado.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"¿Quién es responsable de gestionar las cotizaciones?\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"Mercado\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"Solo el mercado principal gestiona las cotizaciones.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"Vendedores\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"Los vendedores gestionan las cotizaciones de sus propios productos y pueden elegir no contabilizarlas.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"Guardar configuración\",\n \"store/b2b-quotes.myAccountLink\": \"Cotizaciones y carritos guardados\",\n \"store/b2b-quotes.create.title\": \"Crear cotización\",\n \"store/b2b-quotes.create.nameLabel\": \"Nombre\",\n \"store/b2b-quotes.create.descriptionLabel\": \"Observaciones\",\n \"store/b2b-quotes.create.success\": \"Cotización guardada con éxito\",\n \"store/b2b-quotes.create.error\": \"Error al guardar la cotización\",\n \"store/b2b-quotes.create.required\": \"Ingresa un nombre para tu cotización\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"Nombre de la cotización\",\n \"store/b2b-quotes.create.empty-state-label\": \"Agrega ítems a tu carrito para crear una cotización\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, one {} =499{caracter restante}=500{Límite de 500 caracteres alcanzado}other{caracteres restantes}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"Guardar para después\",\n \"store/b2b-quotes.create.button.request-quote\": \"Solicitar cotización\",\n \"store/b2b-quotes.back\": \"Atrás\",\n \"store/b2b-quotes.error.notAuthenticated\": \"Por favor, inicia sesión para ver este contenido.\",\n \"store/b2b-quotes.error.notPermitted\": \"No tienes el permiso necesario para ver este contenido.\",\n \"store/b2b-quotes.quotes-table.title\": \"Mis cotizaciones\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"Nueva cotización\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"No se encontraron cotizaciones\",\n \"store/b2b-quotes.quotes-table.details.label\": \"Detalles\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"Nombre de ref.\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"Subtotal\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"Creada por\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"Creada el\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"Fecha de vencimiento\",\n \"store/b2b-quotes.quotes-table.status.title\": \"Status\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"Última actualización\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"Organización\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"Centro de costos\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"Org. y centro de costo\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"Buscar organizaciones...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"Buscar centros de costos...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"Mostrar filas\",\n \"store/b2b-quotes.quotes-table.of\": \"de\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"Buscar\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"Alternar campos visibles\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"Mostrar todo\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"Ocultar todo\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"Limpiar filtros\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"Status\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"Todos\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"Ninguno\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"Cualquiera\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"es\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"incluye\",\n \"store/b2b-quotes.quote-details.title\": \"Información de la cotización\",\n \"store/b2b-quotes.quote-details.decline\": \"Rechazar\",\n \"store/b2b-quotes.quote-details.save\": \"Guardar cotización\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"Enviar al vendedor\",\n \"store/b2b-quotes.quote-details.use-quote\": \"Usar cotización\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"Subtotal\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"Fecha de vencimiento\",\n \"store/b2b-quotes.quote-details.status.title\": \"Status\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"Imagen\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"Cód. de ref.\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"Nombre\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"Cantidad\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"Precio\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"Total\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"Aplicar descuento porcentual\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"Aplica un descuento porcentual al subtotal de la cotización. Observación: esto reemplazará cualquier cambio realizado en los precios de SKU individuales.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"El descuento porcentual está desactivado porque hay una promoción que ya ha aplicado un descuento mayor que el descuento manual máximo.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"Los descuentos manuales superiores al {maxDiscount} % se rechazarán automáticamente.\",\n \"store/b2b-quotes.quote-details.products.title\": \"Productos ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"Se pueden agregar notas después de crear las cotizaciones.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"Historial de actualizaciones\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, one {} =0{Creada}other{Actualizada}} el {date} por {email} ({role}) con el status {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"Observaciones:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"Agregar observación\",\n \"store/b2b-quotes.quote-details.update-success\": \"Cotización guardada con éxito.\",\n \"store/b2b-quotes.quote-details.update-error\": \"Error al guardar la cotización. Consulta la consola para ver más detalles.\",\n \"store/b2b-quotes.quote-details.use-error\": \"Error al usar la cotización. Consulta la consola para ver más detalles.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"Hay algunos descuentos que son superiores al máximo permitido.\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"Descuento porcentual\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"Subtotal original\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"Precio original\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"Precio cotizado\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"Subtotal cotizado\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"Modificar fecha de vencimiento\",\n \"store/b2b-quotes.quote-locking.title\": \"Cotización en uso\",\n \"store/b2b-quotes.quote-locking.message\": \"Tu carrito contiene ítems de una cotización y no puede ser modificado. Puedes volver a la página de checkout o limpiar el carrito para continuar navegando.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"Volver al checkout\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"Limpiar carrito\",\n \"store/b2b-quotes.quote-status.ready\": \"Lista\",\n \"store/b2b-quotes.quote-status.placed\": \"Realizada\",\n \"store/b2b-quotes.quote-status.revised\": \"Revisada\",\n \"store/b2b-quotes.quote-status.pending\": \"Pendiente\",\n \"store/b2b-quotes.quote-status.expired\": \"Vencida\",\n \"store/b2b-quotes.quote-status.declined\": \"Rechazada\"\n}\n\n```"
}
] |
code_b2b-quotes_f750b588
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/messages/ar.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-quotes.navigation.label\": \"أسعار B2B\",\n \"admin/b2b-quotes.navigation.keywords\": \"b2b، تسعير، أسعار، عربة، عربات، انتهاء الصلاحية\",\n \"admin/b2b-quotes.settings.title\": \"إعدادات تسعير B2B\",\n \"admin/b2b-quotes.settings.saveSettings.failure\": \"فشل في حفظ الإعدادات\",\n \"admin/b2b-quotes.settings.saveSettings.success\": \"تم حفظ الإعدادات بنجاح\",\n \"admin/b2b-quotes.settings.cartLifeSpan.label\": \"فترة انتهاء الصلاحية الافتراضية (بالأيام) للأسعار والعربات المسجلة\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\": \"Expiration Period for Quotes and Saved Carts\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.title\": \"إدارة العروض للسوق\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.description\": \"قم بتكوين كيفية إدارة العروض في السوق.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.info\": \"من المسؤول عن إدارة العروض؟\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\": \"السوق\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\": \"يدير السوق الرئيسي فقط العروض.\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\": \"البائعون\",\n \"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\": \"يدير البائعون العروض الخاصة بمنتجاتهم ويمكنهم اختيار عدم حساب العروض.\",\n \"admin/b2b-quotes.settings.saveSettings.buttonText\": \"حفظ الإعدادات\",\n \"store/b2b-quotes.myAccountLink\": \"عروض الأسعار والعربات المسجلة\",\n \"store/b2b-quotes.create.title\": \"إنشاء عرض أسعار\",\n \"store/b2b-quotes.create.nameLabel\": \"الإسم\",\n \"store/b2b-quotes.create.descriptionLabel\": \"ملاحظات\",\n \"store/b2b-quotes.create.success\": \"تم حفظ عرض الأسعار بنجاح\",\n \"store/b2b-quotes.create.error\": \"حدث خطأ أثناء حفظ الاسعار\",\n \"store/b2b-quotes.create.required\": \"أدخل اسما لعرض الأسعار الخاص بك\",\n \"store/b2b-quotes.create.placeholder.quotationName\": \"اسم عرض الأسعار\",\n \"store/b2b-quotes.create.empty-state-label\": \"لإنشاء عرض أسعار، ابدأ بإضافة عناصر إلى عربة التسوق الخاصة بك.\",\n \"store/b2b-quotes.create.characterLeft\": \"{count, plural, =499{حرفًا متبقيًا}=500{تم الوصول لحد عدد الأحرف الـ 500}other{حرفًا متبقيًا}}\",\n \"store/b2b-quotes.create.button.save-for-later\": \"حفظ لوقت لاحق\",\n \"store/b2b-quotes.create.button.request-quote\": \"طلب عرض الأسعار\",\n \"store/b2b-quotes.back\": \"عودة\",\n \"store/b2b-quotes.error.notAuthenticated\": \"الرجاء تسجيل الدخول لعرض هذا المحتوى.\",\n \"store/b2b-quotes.error.notPermitted\": \"ليس لديك الصلاحيات اللازمة لعرض هذا المحتوى.\",\n \"store/b2b-quotes.quotes-table.title\": \"عروض الأسعار الخاصة بي\",\n \"store/b2b-quotes.quotes-table.newLine.label\": \"عرض أسعار جديد\",\n \"store/b2b-quotes.quotes-table.empty-state-label\": \"لم يتم العثور على عرض أسعار.\",\n \"store/b2b-quotes.quotes-table.details.label\": \"التفاصبل\",\n \"store/b2b-quotes.quotes-table.referenceName.title\": \"اسم المرجع\",\n \"store/b2b-quotes.quotes-table.subtotal.title\": \"تكلفة الطلب\",\n \"store/b2b-quotes.quotes-table.creatorEmail.title\": \"انشأ من قبل\",\n \"store/b2b-quotes.quotes-table.creationDate.title\": \"تم إنشاؤه في\",\n \"store/b2b-quotes.quotes-table.expirationDate.title\": \"تاريخ انتهاء الصلاحية\",\n \"store/b2b-quotes.quotes-table.status.title\": \"الحالة\",\n \"store/b2b-quotes.quotes-table.lastUpdate.title\": \"آخر تحديث\",\n \"store/b2b-quotes.quotes-table.organization.title\": \"المنظمة\",\n \"store/b2b-quotes.quotes-table.costCenter.title\": \"مركز التكلفة\",\n \"store/b2b-quotes.quotes-table.orgAndCostCenter.title\": \"منظمة ومركز التكلفة\",\n \"store/b2b-quotes.quotes-table.searchOrganization.title\": \"البحث عن منظمات...\",\n \"store/b2b-quotes.quotes-table.searchCostCenter.title\": \"البحث عن مراكز التكلفة...\",\n \"store/b2b-quotes.quotes-table.showRows\": \"عرض الخانات\",\n \"store/b2b-quotes.quotes-table.of\": \"من\",\n \"store/b2b-quotes.quotes-table.search.placeholder\": \"بحث\",\n \"store/b2b-quotes.quotes-table.toggleFields.label\": \"تبديل الحقول المرئية\",\n \"store/b2b-quotes.quotes-table.toggleFields.showAllLabel\": \"عرض الكل\",\n \"store/b2b-quotes.quotes-table.toggleFields.hideAllLabel\": \"إخفاء الكل\",\n \"store/b2b-quotes.quotes-table.clearFilters.label\": \"مسح المرشحات\",\n \"store/b2b-quotes.quotes-table.statusFilter.label\": \"الحالة\",\n \"store/b2b-quotes.quotes-table.filters.all\": \"الكل\",\n \"store/b2b-quotes.quotes-table.filters.none\": \"لا شيء\",\n \"store/b2b-quotes.quotes-table.filters.any\": \"أي\",\n \"store/b2b-quotes.quotes-table.filters.is\": \"هو\",\n \"store/b2b-quotes.quotes-table.filters.includes\": \"يشمل\",\n \"store/b2b-quotes.quote-details.title\": \"تفاصيل عرض الأسعار\",\n \"store/b2b-quotes.quote-details.decline\": \"رفض\",\n \"store/b2b-quotes.quote-details.save\": \"حفظ عرض الأسعار\",\n \"store/b2b-quotes.quote-details.submit-to-sales-rep\": \"إرسال إلى مسؤول المبيعات\",\n \"store/b2b-quotes.quote-details.use-quote\": \"استخدام عرض الأسعار\",\n \"store/b2b-quotes.quote-details.subtotal.title\": \"تكلفة الطلب\",\n \"store/b2b-quotes.quote-details.expiration.title\": \"تاريخ انتهاء الصلاحية\",\n \"store/b2b-quotes.quote-details.status.title\": \"الحالة\",\n \"store/b2b-quotes.quote-details.items.image.title\": \"الصورة\",\n \"store/b2b-quotes.quote-details.items.refId.title\": \"الرمز المرجعي\",\n \"store/b2b-quotes.quote-details.items.name.title\": \"الإسم\",\n \"store/b2b-quotes.quote-details.items.quantity.title\": \"الكمية\",\n \"store/b2b-quotes.quote-details.items.price.title\": \"السعر\",\n \"store/b2b-quotes.quote-details.items.total.title\": \"المجموع\",\n \"store/b2b-quotes.quote-details.apply-discount.title\": \"تطبيق خصم النسبة المئوية\",\n \"store/b2b-quotes.quote-details.apply-discount.help-text\": \"قم بتطبيق نسبة مئوية للخصم على المجموع الفرعي لعرض الأسعار. لاحظ أن هذا سيؤدي إلى تجاوز أي تغييرات تم إجراؤها على أسعار وحدات SKU الفردية.\",\n \"store/b2b-quotes.quote-details.apply-discount.disabled-message\": \"لا يتوفر خصم النسبة المئوية لأن العرض الترويجي يطبق بالفعل خصمًا أعلى من الحد الأقصى للخصم اليدوي.\",\n \"store/b2b-quotes.quote-details.apply-discount.maxDiscount-text\": \"الخصومات اليدوية التي تزيد على {maxDiscount}% سيتم رفضها تلقائياً.\",\n \"store/b2b-quotes.quote-details.products.title\": \"المنتجات ({total})\",\n \"store/b2b-quotes.quote-details.notes-after-created.helpText\": \"يمكن إضافة الملاحظات بعد إنشاء الاقتباسات.\",\n \"store/b2b-quotes.quote-details.update-history.title\": \"سجل التحديث\",\n \"store/b2b-quotes.quote-details.update-history.update-details\": \"{index, plural, =0{تم إنشاءه}other{تم تحديثه}} يوم {date} من قبل {email} ({role}) مع الحالة {status}\",\n \"store/b2b-quotes.quote-details.update-history.notes\": \"ملاحظات:\",\n \"store/b2b-quotes.quote-details.add-note.label\": \"إضافة ملاحظة\",\n \"store/b2b-quotes.quote-details.update-success\": \"تم حفظ عرض الأسعار بنجاح\",\n \"store/b2b-quotes.quote-details.update-error\": \"حدث خطأ أثناء حفظ عرض الأسعار. راجع وحدة التحكم لمزيد من التفاصيل.\",\n \"store/b2b-quotes.quote-details.use-error\": \"حدث خطأ أثناء استخدام عرض الأسعار. راجع وحدة التحكم لمزيد من التفاصيل.\",\n \"store/b2b-quotes.quote-details.discount-error\": \"بعض الخصومات أعلى من المسموح به\",\n \"store/b2b-quotes.quote-details.percentage-discount.title\": \"نسبة الخصم\",\n \"store/b2b-quotes.quote-details.original-subtotal.title\": \"المجموع الفرعي الأصلي\",\n \"store/b2b-quotes.quote-details.original-price.title\": \"السعر الأصلي\",\n \"store/b2b-quotes.quote-details.quote-price.title\": \"السعر المقدّم\",\n \"store/b2b-quotes.quote-details.quoted-subtotal.title\": \"المجموع الفرعي المقدّم\",\n \"store/b2b-quotes.quote-details.expiration-date-change.title\": \"تغيير تاريخ انتهاء الصلاحية\",\n \"store/b2b-quotes.quote-locking.title\": \"عرض الأسعار قيد الاستخدام\",\n \"store/b2b-quotes.quote-locking.message\": \"تحتوي سلة التسوق الخاصة بك حاليًا على عناصر من عرض أسعار ولا يمكن تعديلها. يمكنك العودة إلى صفحة الدفع أو مسح عربة التسوق الخاصة بك لمتابعة التصفح.\",\n \"store/b2b-quotes.quote-locking.return-to-checkout\": \"الرجوع إلي الدفع\",\n \"store/b2b-quotes.quote-locking.clear-cart\": \"حذف عربة التسوق\",\n \"store/b2b-quotes.quote-status.ready\": \"جاهز\",\n \"store/b2b-quotes.quote-status.placed\": \"تم\",\n \"store/b2b-quotes.quote-status.revised\": \"تمت مراجعته\",\n \"store/b2b-quotes.quote-status.pending\": \"في الانتظار\",\n \"store/b2b-quotes.quote-status.expired\": \"منتهية\",\n \"store/b2b-quotes.quote-status.declined\": \"مرفوض\"\n}\n\n```"
}
] |
code_b2b-quotes_13f30bdc
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/admin/navigation.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n[\n {\n \"section\": \"accountSettings\",\n \"path\": \"/admin/b2b-quotes/settings\",\n \"icon\": \"extensions-ic\",\n \"titleId\": \"admin/b2b-quotes.navigation.label\",\n \"searchKeyWordsHelpers\": \"admin/b2b-quotes.navigation.keywords\"\n }\n]\n\n```"
}
] |
code_b2b-quotes_cd43bb1e
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/admin/routes.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin.app.b2b-quotes\": {\n \"path\": \"/admin/app/b2b-quotes/*\",\n \"around\": [\"layout\"]\n },\n \"admin.app.b2b-quotes.settings\": {\n \"component\": \"AppSettings\",\n \"path\": \"/admin/app/b2b-quotes/settings\"\n },\n \"layout\": {\n \"component\": \"B2BQuotesAdminLayout\"\n }\n}\n\n```"
}
] |
code_b2b-quotes_1f9bf38d
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/docs/README.md from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n📢 Use this project, [contribute](https://github.com/vtex-apps/b2b-quotes) to it or open issues to help evolve it using [Store Discussion](https://github.com/vtex-apps/store-discussion).\n\n# B2B Quotes & Carts\n\n<!-- DOCS-IGNORE:start -->\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n\n[](#contributors-)\n\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n<!-- DOCS-IGNORE:end -->\n\n> ℹ The **B2B Quotes & Carts** app is part of VTEX’s [B2B Suite](https://developers.vtex.com/vtex-developer-docs/docs/vtex-b2b-suite) solution: a collection of apps that allow stores to manage organizations, storefront roles and permissions, and checkout settings for B2B commerce relationships. We recommend that you use it alongside the other apps in this suite for all functionalities to work as expected.\n\nThe B2B shopping experience frequently requires the possibility for customers to request quotes and negotiate prices with sales representatives.\n\nThe **B2B Quotes & Carts** app allows customers who are part of [B2B Organizations](https://developers.vtex.com/vtex-developer-docs/docs/vtex-b2b-organizations) to request a quote for a shopping cart and save it for future use – including its items, product quantities and prices. This enables price negotiations between them and the store’s sales representatives, as well as order approval flows within their organization.\n\n## Before you start\n\nFirst, make sure you have the [VTEX IO CLI (Command Line Interface)](https://developers.vtex.com/vtex-developer-docs/docs/vtex-io-documentation-vtex-io-cli-install) installed in your machine.\n\nNote that installing **B2B Quotes & Carts** will also result in [Storefront Permissions](https://developers.vtex.com/vtex-developer-docs/docs/vtex-storefront-permissions) being installed as a dependency app – it allows you to grant specific storefront roles for B2B users in an organization. This is especially useful for organizations with multiple users who have different responsibilities, such as placing orders, approving orders or managing the organization users. See the [Storefront Permissions](https://developers.vtex.com/vtex-developer-docs/docs/vtex-storefront-permissions) app documentation for information on the available roles and how to customize their permissions (optional).\n\nIf you want to be able to manage roles and permissions on the VTEX Admin, you must install [Storefront Permissions UI](https://developers.vtex.com/vtex-developer-docs/docs/vtex-storefront-permissions-ui) as well.\n\nAlong with this app, we recommend installing [B2B Checkout Settings](https://developers.vtex.com/vtex-developer-docs/docs/vtex-b2b-checkout-settings), which includes quotes-related functionalities to checkout. For example, it allows you to add a `Create a Quote` button to the checkout’s shopping cart page, as well as “lock” the checkout if a quote is in use, preventing the cart contents from being changed until the order is placed.\n\n## Installation\n\nYou can install the **B2B Quotes & Carts** app by running `vtex install vtex.b2b-quotes` in your terminal, using the [VTEX IO CLI](https://developers.vtex.com/vtex-developer-docs/docs/vtex-io-documentation-vtex-io-cli-installation-and-command-reference).\n\nWhen you install the **B2B Quotes & Carts** app, a data entity named **quotes** is created in **Master Data V2**. This entity stores all the information related to quotes and saved carts generated through the app.\n\n## How the app works\n\nThe **B2B Quotes & Carts** app enables a shared [My Quotes](#my-quotes) page for members of a B2B organization, from where it is possible to create a quote or saved cart and view existing quotes and saved carts.\n\nIt is also possible to manage each quote or saved cart’s [details](#quote-details), including the possibility to edit them, request adjustments, approve or decline them or use them to place an order.\n\nIn addition, the app enables a set of [email templates](#email-templates) to notify members of the organization of quote status changes through Message Center.\n\nThe ability to use these resources depends on having the required [storefront permissions](#storefront-permissions), as explained in the next section.\n\n| **Permission** | **Default roles** |\n| --------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |\n| **Create Quotes and Carts** | Store Admin<br>Sales Admin<br>Sales Manager<br>Sales Representative<br>Organization Admin<br>Organization Approver<br>Organization Buyer |\n| **Access My Cost Center's Quotes and Carts** | Sales Representative<br>Organization Approver<br>Organization Buyer |\n| **Access My Organization's Quotes and Carts** | Sales Manager<br>Organization Admin |\n| **Access All Quotes and Carts** | Store Admin<br>Sales Admin |\n| **Place Orders from Quotes and Carts** | Store Admin<br>Sales Admin<br>Sales Manager<br>Sales Representative<br>Organization Admin<br>Organization Approver |\n| **Decline Quotes and Carts** | Store Admin<br>Sales Admin<br>Sales Manager<br>Sales Representative<br>Organization Admin<br>Organization Approver |\n| **Edit My Cost Center's Quotes and Carts** | Sales Representative |\n| **Edit My Organization's Quotes and Carts** | Sales Manager |\n| **Edit All Quotes and Carts** | Store Admin<br>Sales Admin |\n\nIf you want to be able to manage roles and permissions for **B2B Quotes & Carts** on the VTEX Admin, you must install [Storefront Permissions UI](https://developers.vtex.com/vtex-developer-docs/docs/vtex-storefront-permissions-ui) and refer to its documentation.\n\n### My Quotes\n\nThe **B2B Quotes & Carts** app enables the **My Quotes** page, an interface to manage quotes and saved carts in the storefront, provided that the user is logged in and has the required storefront permissions.\n\nTo access **My Quotes**, customers or sales users must follow the instructions below.\n\n1. Access the storefront and log in.\n2. Click `Hello, {name}`.\n3. Click on **My Account**.\n4. Go to **Quotes and Saved Carts** on the sidebar. You will see the page below.\n\n\n\n> ℹ Quotes and saved carts are shown together in the same table. The differences are the following:\n> _ Only quotes can have a status of **Pending** or **Revised**.\n> _ Sales users are not notified when saved carts are created. \\* It is possible to edit a saved cart such that it becomes a quote, as explained in [Quote Details](#quote-details).\n\nIn this page, it is possible to use the following resources:\n\n- **Search bar**: allows you to look up specific quotes or saved carts by name.\n- **Filters**: allows you to filter the displayed quotes or saved carts by _Status_, _Organization \\_or \\_Cost Center._ The two last options are available under `More`.\n- **New quote**: allows you to create a quote or saved cart by clicking on the `New Quote` button. See more details on this in the [Creating a quote or saved cart](#creating-a-quote-or-saved-cart) section.\n\nThe list of quotes and saved carts displays the following information:\n\n- **Ref. Name:** the quote or saved cart’s reference name.\n- **Subtotal:** subtotal of the shopping cart associated with the quote or saved cart.\n- **Created by:** email of the user who created the quote or saved cart.\n- **Created on:** date when the quote or saved cart was created, in the MM/DD/YYYY format.\n- **Expiration:** date when the quote or saved cart will expire, in the MM/DD/YYYY format.\n- **Status:** current state of the quote or saved cart, including the following options:\n - **Ready**: the quote or saved cart is ready to be used to place an order.\n - **Pending**: the quote is waiting for review and adjustment by a sales user.\n - **Revised**: the quote is waiting for additional review and adjustment by a sales user.\n - **Declined**: the quote or saved cart has been declined and cannot be used to place an order.\n - **Expired**: the quote or saved cart has reached its expiration date and cannot be used to place an order.\n - **Placed**: the quote or saved cart has been used to place an order and cannot be used again.\n- **Last Update:** date when the quote or saved cart was updated for the last time, in the MM/DD/YYYY format.\n- **Organization:** name of the organization the quote or saved cart is associated with.\n- **Cost Center:** name of the cost center the quote or saved cart is associated with.\n\nFrom the list, users may click on any row or click on <img src=\"https://user-images.githubusercontent.com/77292838/159766633-dfcb818f-6bd7-4cd0-92dc-9c682fb50d04.png\" width=\"10\" alt-text=\"00-ellipsis\"/> **> Details** to view and edit the [details](#quote-details) of that quote or saved cart, according to what their permissions allow.\n\nDepending on the current user’s [storefront permissions](#storefront-permissions), the **My Quotes** page will show a list of quotes and saved carts containing one of the following:\n\n| **Permission** | **Content** |\n| --------------------------------------------- | ------------------------------------------------------------------------------- |\n| **Access My Cost Center's Quotes and Carts** | All quotes and saved carts created by users in the current user’s cost center. |\n| **Access My Organization's Quotes and Carts** | All quotes and saved carts created by users in the current user’s organization. |\n| **Access All Quotes and Carts** | All quotes and saved carts in the current store, regardless of organization. |\n\n### Creating a quote or saved cart\n\nIn order to create a quote or saved cart, it is necessary to have the **Create Quotes and Carts** [permission](#storefront-permissions). After adding products to the cart in the storefront, users with these permissions can use the contents of their cart to create a saved cart or to request a quote. They should follow the instructions below.\n\n1. Fill in the shopping cart with the desired products.\n2. Take one of the following actions to create a quote or saved cart:\n\n - Clicking the `Create a Quote` button during checkout, provided that **B2B Checkout Settings** is installed and this button is enabled in the app’s [configuration](https://developers.vtex.com/vtex-developer-docs/docs/vtex-b2b-checkout-settings#configuration).\n - Navigating to the `/b2b-quotes/create` route.\n - Clicking the `+ New` button on the **My Quotes** page.\n\n Any of these paths will lead to the **Create Quote** page, illustrated below.\n\n3. Fill in the quote or saved cart’s **Name**.\n4. Make sure that all the information in the **Create Quote** page is correct:\n - **Original Subtotal:** subtotal of the shopping cart before any discounts.\n - **Percentage Discount:** percentage of the discount offered by a sales representative.\n - **Quoted Subtotal:** subtotal of the quote, including any discounts offered by sales representatives.\n - **Image:** image of the selected product.\n - **Ref. Code:** reference code of the selected product.\n - **Name:** name of the product.\n - **Original Price:** original price of the product.\n - **Quoted Price:** price of the product including any discounts offered by sales representatives.\n - **Quantity:** quantity of items.\n - **Total:** total value considering the quoted price and the quantity of items.\n5. Write a note in the optional **Add Note** field, if necessary.\n\n Notes added here will be visible as part of the quote or saved cart’s [Update History](#quote-details) and can be seen by salespeople or other members of your organization and cost center. For example, if a user wishes to request a specific discount from the B2B store’s salesperson, they may include this request as a note.\n\n6. Click on one of the following options:\n\n - `Save for later`: clicking on this button will result in the creation of a saved cart. The status of the newly created saved cart will be set as **Ready**, meaning that it can immediately be used to place an order by any user within that organization or cost center who has the **Place Orders from Quotes and Carts** [permission](#storefront-permissions).\n - `Request quote`: clicking on this button will result in the creation of a quote. The status of the newly created quote will be set as **Pending**, meaning that it will need to be reviewed and adjusted by a salesperson before any special discounts can be applied.\n\n Note that a **Pending** quote can still be used to place an order, as it is essentially a saved cart at this point, with the original item quantities and prices from the user’s shopping cart.\n\nThe items in the table, along with the quantities and prices shown, will be saved when the quote or saved cart is created.\n\n\n\n### Quote Details\n\nThe **Quote Details** page displays all the information about a specific quote or saved cart, as well as the available actions, depending on its status and the user’s [storefront permissions](#storefront-permissions).\n\nUsers can access this page through the storefront by going to **My Account > Quotes and Saved Carts**.\n\n\n\nThis page displays the following information about a specific quote:\n\n- **Name:** reference name of the quote or saved cart.\n- **Original Subtotal:** subtotal of the shopping cart before any discounts.\n- **Percentage Discount:** percentage of the discount offered by a sales representative.\n- **Quoted Subtotal:** subtotal of the quote, including any discounts offered by sales representatives.\n- **Expiration:** date when the quote or saved cart will expire, in the MM/DD/YYYY format.\n- **Status:** current state of the quote or saved cart, as in [My Quotes](#my-quotes).\n- **Image:** image of the selected product.\n- **Ref. Code:** reference code of the selected product.\n- **Name:** name of the product.\n- **Original Price:** original price of the product.\n- **Quoted Price:** price of the product including any discounts offered by sales representatives.\n- **Quantity:** quantity of items.\n- **Total:** total value considering the quoted price and the quantity of items.\n- **Update History:** includes a history of all events related to the quote, such as its creation and discounts offered, including notes if there are any.\n- **Add Note:** optional field to write comments or notes. Notes added here will be visible as part of the quote or saved cart’s [Update History](#update-history). For example, if a user wishes to request a specific discount from their salesperson, they may include this request as a note.\n\nThe following actions are available, depending on the user’s storefront permissions:\n\n| Actions | Required storefront permissions |\n| ----------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |\n| [Editing a quote](#editing-a-quote) | Any of the following:<br>Edit My Cost Center's Quotes and Carts<br>Edit My Organization's Quotes and Carts<br>Edit All Quotes and Carts |\n| [Requesting additional adjustments to a quote](#requesting-additional-adjustments-to-a-quote) | Any of the following:<br>Access My Cost Center's Quotes and Carts<br>Access My Organization's Quotes and Carts<br>Access All Quotes and Carts |\n| [Declining a quote or saved cart](#declining-a-quote-or-saved-cart) | Decline Quotes and Carts |\n| [Using a quote or saved cart to place an order](#using-a-quote-or-saved-cart-to-place-an-order) | Place Orders from Quotes and Carts |\n\n#### Editing a quote\n\nUsers with **Edit** [permissions](#storefront-permissions) – who are typically users associated with any of the Sales roles or the Store Admin role – can edit quotes in the **Quote Details** page as follows:\n\n- Change the price or quantity of each SKU by editing them directly in the **Quoted Price** and **Quantity** columns of the product list within the quote.\n- **Apply Percentage Discount:** apply a percentage discount to the entire quote by dragging the discount bar up to the desired percentage. This will override any changes made to individual product prices.\n- **Expiration Date Change:** change the quote’s expiration date.\n- **Add Note:** write an optional comment.\n\nAfter making any of the above edits on the quote details page, the user must save the quote by clicking `Save quote`.\n\nThis will have the effect of setting the quote’s status to **Ready** and notifying any user who has previously interacted with the quote of the change via email – check [Email templates](#email-templates) for more details on this notification.\n\n\n\n> ℹ To take discounts into consideration, the **B2B Quotes and Carts** app is integrated with the [Order Authorization](https://help.vtex.com/en/tutorial/how-order-authorization-works--3MBK6CmKHAuUjMBieDU0pn) system. If there is a manual discount rule that will automatically deny a discount above a certain percent, **B2B Quotes and Carts** will not allow a discount above this amount to be applied.\n\n#### Requesting additional adjustments to a quote\n\nUsers who lack any of the **Edit** permissions but have any of the **Access** [permissions](#storefront-permissions) can add additional notes to a quote or saved cart if its current status is **Ready**, **Pending**, or **Revised**.\n\nIf a quote is **Ready**, meaning that it has been adjusted and saved by a sales user, its status will change to **Revised** when an organization user adds notes and clicks `Submit to Sales Rep`. This is intended as a way for the organization user to request additional adjustments to pricing or quantity. All users who have previously interacted with the quote will receive a notification including the contents of the notes field – check [Email templates](#email-templates) for more details on this notification.\n\n#### Declining a quote or saved cart\n\nA declined quote or saved cart can no longer be edited or used to place an order. Users with the **Decline Quotes and Carts** [permission](#storefront-permissions) may decline a quote or saved cart if its current status is **Ready**, **Pending** or **Revised**. This can be done by clicking the `Decline` button on the quote details page.\n\nAll users who have previously interacted with the quote will be notified that it has been declined – check [Email templates](#email-templates) for more details on this notification.\n\n#### Using a quote or saved cart to place an order\n\nUsers with the **Place Orders from Quotes and Carts** [permission](#storefront-permissions) may use a quote or saved cart to place an order if its current status is **Ready**, **Pending**, or **Revised**.\n\nThey can do this by clicking the `Use Quote` button on the quote details page. The user will be redirected to checkout with the contents of the quote or saved cart added to their current cart. Anything that was previously in the user’s cart will be cleared.\n\nIf the [B2B Checkout Settings](https://developers.vtex.com/vtex-developer-docs/docs/vtex-b2b-checkout-settings) app is installed, the checkout will be in a “locked” state until the order is placed, meaning that product quantities cannot be changed, and products cannot be added or removed. If there are not enough items in stock to meet the quantity specified in the quote or saved cart, the amount will be automatically adjusted. If a given product has no availability, checkout will allow it to be removed from the cart.\n\nOnce the order has been placed, the quote or saved cart’s status will automatically change to **Placed**, after which point it cannot be used again.\n\n### Email templates\n\nThe **B2B Quotes & Carts** app provides a set of three email templates to be sent to B2B users, triggered automatically based on specific changes:\n\n| **Template name** | **Recipients** | **Email trigger** |\n|---------------------|----------------|--------------------|\n| Quote created | Only users with the **sales-admin** role receive this email. | Sent only if all of the following conditions are met:<br>• The quote creator does not have permission to edit quotes.<br>• The quote must be created using the `Request quote` button and cannot be saved for later. |\n| Quote placed | All users who edited, requested adjustments or approved the quote. | Sent when an order is placed from the existing quote. |\n| Quote updated | All users who interacted with the quote. | Sent when the quote is updated in any way, including changes in discounts, updates to expiration dates, addition of new notes, or quote refusal. |\n\nIf you want to view or edit any of these templates, follow the steps below.\n\n1. In the VTEX Admin, go to **Customer > Message center > Templates**.\n2. In the search bar, type `quote`.\n3. Click on the template you want to view or edit.\n4. Make the desired changes in the template. You can learn more about editing **Message Center** templates by reading our documentation on [How to create and edit transactional email templates](https://help.vtex.com/en/tracks/transactional-emails--6IkJwttMw5T84mlY9RifRP/335JZKUYgvYlGOJgvJYxRO).\n5. Click on `Save`.\n\n## **Configuration (optional)**\n\nTo change the app’s settings, access **Account Settings** > **B2B Quotes** in the VTEX Admin.\n\nOn this page, you can configure the following option:\n\n- **Default expiration period (in days) for quotes and saved carts:** this field allows you to configure the default expiration date for new quotes requested by customers in your store. The default value is 30 days. The minimum value you can set is 1, and there is no maximum value.\n\nMake sure you click on `Save Settings` after any changes.\n\nNote that users with [storefront permissions](#storefront-permissions) to edit quotes will be able to adjust the expiration dates of individual quotes as needed.\n\n\n\n<!-- DOCS-IGNORE:start -->\n\n## Contributors ✨\n\nThanks goes to these wonderful people:\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<!-- markdownlint-enable -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind are welcome!\n\n<!-- DOCS-IGNORE:end -->\n\n```"
}
] |
code_b2b-quotes_71939b75
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/vtex.storefront-permissions/configuration.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"B2B Quotes & Carts\",\n \"features\": [\n {\n \"label\": \"Create Quotes and Carts\",\n \"value\": \"create-quotes\",\n \"roles\": [\n \"store-admin\",\n \"sales-admin\",\n \"sales-manager\",\n \"sales-representative\",\n \"customer-admin\",\n \"customer-approver\",\n \"customer-buyer\"\n ]\n },\n {\n \"label\": \"Access My Cost Center's Quotes and Carts\",\n \"value\": \"access-quotes-costcenter\",\n \"roles\": [\"customer-approver\", \"customer-buyer\", \"sales-representative\"]\n },\n {\n \"label\": \"Access My Organization's Quotes and Carts\",\n \"value\": \"access-quotes-organization\",\n \"roles\": [\"customer-admin\", \"sales-manager\"]\n },\n {\n \"label\": \"Access All Sales Channels' Quotes and Carts\",\n \"value\": \"access-quotes-all-saleschannel\",\n \"roles\": [\n \"store-admin\",\n \"sales-admin\",\n \"sales-manager\",\n \"sales-representative\",\n \"customer-admin\",\n \"customer-approver\",\n \"customer-buyer\"\n ]\n },\n {\n \"label\": \"Access All Quotes and Carts\",\n \"value\": \"access-quotes-all\",\n \"roles\": [\"store-admin\", \"sales-admin\"]\n },\n {\n \"label\": \"Place Orders from Quotes and Carts\",\n \"value\": \"use-quotes\",\n \"roles\": [\n \"store-admin\",\n \"customer-admin\",\n \"customer-approver\",\n \"sales-admin\",\n \"sales-manager\",\n \"sales-representative\"\n ]\n },\n {\n \"label\": \"Decline Quotes and Carts\",\n \"value\": \"decline-quotes\",\n \"roles\": [\n \"store-admin\",\n \"sales-admin\",\n \"sales-manager\",\n \"sales-representative\",\n \"customer-admin\",\n \"customer-approver\"\n ]\n },\n {\n \"label\": \"Edit My Cost Center's Quotes and Carts\",\n \"value\": \"edit-quotes-costcenter\",\n \"roles\": [\"sales-representative\"]\n },\n {\n \"label\": \"Edit My Organization's Quotes and Carts\",\n \"value\": \"edit-quotes-organization\",\n \"roles\": [\"sales-manager\"]\n },\n {\n \"label\": \"Edit All Quotes and Carts\",\n \"value\": \"edit-quotes-all\",\n \"roles\": [\"store-admin\", \"sales-admin\"]\n }\n ]\n}\n\n```"
}
] |
code_b2b-quotes_c5d3c81a
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/B2BQuotesAdminLayout.tsx from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport type { FunctionComponent } from 'react'\nimport React from 'react'\nimport { createSystem, ToastProvider } from '@vtex/admin-ui'\n\nconst B2BQuotesAdminLayout: FunctionComponent = ({ children }) => {\n const [SystemProvider] = createSystem()\n\n return (\n <SystemProvider>\n <ToastProvider>{children}</ToastProvider>\n </SystemProvider>\n )\n}\n\nexport default B2BQuotesAdminLayout\n\n```"
}
] |
code_b2b-quotes_1c0f6b84
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/QuotesTable.tsx from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport QuotesTableContainer from './components/QuotesTableContainer'\n\nexport default QuotesTableContainer\n\n```"
}
] |
code_b2b-quotes_d38a3e58
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/AppSettings.tsx from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport AppSettings from './components/AppSettings'\n\nexport default AppSettings\n\n```"
}
] |
code_b2b-quotes_84a4982b
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/package.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"vtex.b2b-quotes\",\n \"version\": \"3.0.3\",\n \"scripts\": {\n \"test\": \"vtex-test-tools test\"\n },\n \"dependencies\": {\n \"@vtex/admin-ui\": \"^0.132.7\",\n \"@vtex/css-handles\": \"^1.0.0\",\n \"graphql\": \"^14.5.8\",\n \"react\": \"^16.9.2\",\n \"react-apollo\": \"^3.1.5\",\n \"react-intl\": \"^5.13.4\",\n \"axios\": \"1.4.0\"\n },\n \"devDependencies\": {\n \"@types/jest\": \"^24.0.18\",\n \"@types/node\": \"^12.7.5\",\n \"@types/react\": \"^16.9.2\",\n \"@types/react-intl\": \"^3.0.0\",\n \"@vtex/test-tools\": \"^3.4.3\",\n \"@vtex/tsconfig\": \"^0.5.6\",\n \"vtex.b2b-organizations-graphql\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.b2b-organizations-graphql@0.10.0/public/@types/vtex.b2b-organizations-graphql\",\n \"vtex.b2b-quotes-graphql\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.b2b-quotes-graphql@1.3.0/public/@types/vtex.b2b-quotes-graphql\",\n \"vtex.checkout-graphql\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.checkout-graphql@0.65.1/public/@types/vtex.checkout-graphql\",\n \"vtex.checkout-resources\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.checkout-resources@0.48.0/public/@types/vtex.checkout-resources\",\n \"vtex.css-handles\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.css-handles@0.4.4/public/@types/vtex.css-handles\",\n \"vtex.format-currency\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.format-currency@0.3.0/public/@types/vtex.format-currency\",\n \"vtex.my-account\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.my-account@1.25.0/public/@types/vtex.my-account\",\n \"vtex.my-account-commons\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.my-account-commons@1.6.0/public/@types/vtex.my-account-commons\",\n \"vtex.order-auth-graphql\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.order-auth-graphql@0.2.1/public/_types/react\",\n \"vtex.order-manager\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.order-manager@0.11.1/public/@types/vtex.order-manager\",\n \"vtex.render-runtime\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.render-runtime@8.132.3/public/@types/vtex.render-runtime\",\n \"vtex.store\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store@2.123.0/public/@types/vtex.store\",\n \"vtex.store-graphql\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-graphql@2.149.3/public/@types/vtex.store-graphql\",\n \"vtex.storefront-permissions\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.storefront-permissions@1.14.0/public/@types/vtex.storefront-permissions\",\n \"vtex.styleguide\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.styleguide@9.146.1/public/@types/vtex.styleguide\"\n }\n}\n\n```"
}
] |
code_b2b-quotes_04d87ed1
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/B2BQuotesLink.tsx from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport type { FunctionComponent, ReactElement } from 'react'\nimport { useEffect, useState } from 'react'\nimport { defineMessages, useIntl } from 'react-intl'\nimport { useQuery } from 'react-apollo'\n\nimport { useSessionResponse } from './utils/helpers'\nimport CHECK_PERMISSIONS from './graphql/checkPermissions.graphql'\n\nconst messages = defineMessages({\n myQuotes: {\n id: 'store/b2b-quotes.myAccountLink',\n },\n})\n\nconst B2BQuotesLink: FunctionComponent<Props> = ({ render }) => {\n const { formatMessage } = useIntl()\n const sessionResponse: any = useSessionResponse()\n const userEmail = sessionResponse?.namespaces?.profile?.email?.value\n\n const [show, setShow] = useState(false)\n\n const { data } = useQuery(CHECK_PERMISSIONS, {\n variables: { email: userEmail },\n skip: !userEmail,\n })\n\n useEffect(() => {\n if (!data) {\n return\n }\n\n if (data.getQuoteEnabledForUser) {\n setShow(true)\n }\n }, [data, userEmail, sessionResponse])\n\n const parameter = {\n name: formatMessage(messages.myQuotes),\n path: `/b2b-quotes`,\n }\n\n return show ? render([parameter]) : null\n}\n\ntype Props = {\n render: (links: Array<{ name: string; path: string }>) => ReactElement\n intl: any\n}\n\nexport default B2BQuotesLink\n\n```"
}
] |
code_b2b-quotes_910c8cf0
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/QuoteDetails.tsx from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport QuoteDetails from './components/QuoteDetails/QuoteDetails'\n\nexport default QuoteDetails\n\n```"
}
] |
code_b2b-quotes_a38a9ffd
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/print.css from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```css\n@media print {\n div[class*='vtex-store-header'],\n div[class*='vtex-store-footer'],\n div[class*='noPrinting'] {\n display: none !important;\n }\n div[class*='printing-area'] {\n margin: 100px 20px;\n }\n}\n\n```"
}
] |
code_b2b-quotes_4eb52043
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/B2BQuotesListAccount.tsx from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport type { FC } from 'react'\nimport React, { Fragment } from 'react'\nimport { Route } from 'vtex.my-account-commons/Router'\nimport { useRuntime } from 'vtex.render-runtime'\nimport { Spinner } from 'vtex.styleguide'\n\nconst B2BQuotesRedirect: FC = () => {\n const { navigate } = useRuntime()\n\n navigate({\n page: 'store.b2b-quotes',\n })\n\n return <Spinner />\n}\n\nconst B2BQuotesListAccount = () => (\n <Fragment>\n <Route exact path=\"/b2b-quotes\" component={B2BQuotesRedirect} />\n </Fragment>\n)\n\nexport default B2BQuotesListAccount\n\n```"
}
] |
code_b2b-quotes_3219b59c
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/B2BQuotesLockingModal.tsx from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport B2BQuotesLockingModal from './components/B2BQuotesLockingModal'\n\nexport default B2BQuotesLockingModal\n\n```"
}
] |
code_b2b-quotes_2c384966
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/store/blocks.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store.b2b-quotes\": {\n \"blocks\": [\"quotes-table\"]\n },\n \"store.create-b2b-quote\": {\n \"blocks\": [\"quote-details\"]\n },\n \"store.b2b-quote-details\": {\n \"blocks\": [\"quote-details\"]\n }\n}\n\n```"
}
] |
code_b2b-quotes_710b253d
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/store/interfaces.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store.b2b-quotes\": {\n \"required\": [\"quotes-table\"]\n },\n \"quotes-table\": {\n \"component\": \"QuotesTable\"\n },\n \"quotes-locking-modal\": {\n \"component\": \"B2BQuotesLockingModal\"\n },\n \"store.create-b2b-quote\": {\n \"required\": [\"quote-details\"]\n },\n \"store.b2b-quote-details\": {\n \"required\": [\"quote-details\"]\n },\n \"quote-details\": {\n \"component\": \"QuoteDetails\"\n },\n \"my-account-link.b2b-quotes\": {\n \"component\": \"B2BQuotesLink\"\n },\n \"my-account-page.b2b-quotes\": {\n \"component\": \"B2BQuotesListAccount\"\n }\n}\n\n```"
}
] |
code_b2b-quotes_fac0f291
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/store/routes.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store.b2b-quotes\": {\n \"title\": \"My Quotes and Carts\",\n \"path\": \"/b2b-quotes\"\n },\n \"store.create-b2b-quote\": {\n \"title\": \"Create Quote\",\n \"path\": \"/b2b-quotes/create\"\n },\n \"store.b2b-quote-details\": {\n \"title\": \"Quote Details\",\n \"path\": \"/b2b-quotes/:id\"\n }\n}\n\n```"
}
] |
code_b2b-quotes_2a78604e
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/store/plugins.json from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"my-account-pages > my-account-page\": \"my-account-page.b2b-quotes\",\n \"my-account-menu > my-account-link\": \"my-account-link.b2b-quotes\"\n}\n\n```"
}
] |
code_b2b-quotes_13084614
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/typings/storefront.d.ts from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport type { FunctionComponent, Component } from 'react'\n\ndeclare global {\n interface StorefrontFunctionComponent<P = unknown>\n extends FunctionComponent<P> {\n getSchema?(props: P): Record<string, unknown>\n schema?: Record<string, unknown>\n }\n\n interface StorefrontComponent<P = unknown, S = unknown>\n extends Component<P, S> {\n getSchema?(props: P): Record<string, unknown>\n schema: Record<string, unknown>\n }\n}\n\n```"
}
] |
code_b2b-quotes_aa9cf2a5
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/typings/global.d.ts from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport type { OrderForm as OrderFormType } from 'vtex.checkout-graphql'\n\ndeclare global {\n interface QuoteSimple {\n id: string\n referenceName: string\n creatorEmail: string\n creatorRole: string\n creationDate: string\n expirationDate: string\n lastUpdate: string\n subtotal: number\n status: string\n organization: string\n organizationName: string\n costCenter: string\n costCenterName: string\n viewedBySales: boolean\n viewedByCustomer: boolean\n hasChildren?: boolean | null\n childrenQuantity?: number | null\n parentQuote?: string | null\n seller?: string\n sellerName?: string\n rowLoading?: boolean\n }\n\n interface Quote extends QuoteSimple {\n items: QuoteItem[]\n updateHistory: QuoteUpdate[]\n }\n\n interface QuoteUpdate {\n email: string\n role: string\n date: string\n status: string\n note: string\n }\n\n interface QuoteItem {\n name: string\n skuName: string\n refId: string\n id: string\n productId: string\n imageUrl: string\n listPrice: number\n price: number\n quantity: number\n sellingPrice: number\n seller: string\n error: boolean | undefined\n }\n\n interface FilterStatement {\n subject: string\n verb: string\n object: Record<string, unknown> | string\n }\n\n interface MessageDescriptor {\n id: string\n description?: string | Record<string, unknown>\n defaultMessage?: string\n values?: Record<string, unknown>\n }\n\n interface OrderFormContext {\n loading: boolean\n orderForm: OrderFormType | undefined\n setOrderForm: (orderForm: Partial<OrderFormType>) => void\n }\n\n interface Seller {\n id: string\n name: string\n }\n}\n\n```"
}
] |
code_b2b-quotes_06be6607
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/typings/css.d.ts from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\ndeclare module '*.css' {\n const css: any\n export default css\n}\n\n```"
}
] |
code_b2b-quotes_1ab0188a
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/typings/graphql.d.ts from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\ndeclare module '*.graphql' {\n import type { DocumentNode } from 'graphql'\n\n const value: DocumentNode\n export default value\n}\n\ndeclare module '*.gql' {\n import type { DocumentNode } from 'graphql'\n\n const value: DocumentNode\n export default value\n}\n\n```"
}
] |
code_b2b-quotes_1ea24cc7
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/typings/vtex.styleguide.d.ts from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\ndeclare module 'vtex.styleguide' {\n export const PageHeader\n export const Alert\n export const Modal\n export const DatePicker\n export const Box\n export const Card\n export const Checkbox\n export const Dropdown\n export const Spinner\n export const Table\n export const Button\n export const ButtonPlain\n export const IconWarning\n export const IconCheck\n export const Input\n export const InputButton\n export const InputCurrency\n export const InputSearch\n export const IconCaretRight\n export const IconCaretDown\n export const IconCaretUp\n export const IconArrowDown\n export const IconArrowBack\n export const IconArrowUp\n export const IconClose\n export const IconExternalLink\n export const IconSearch\n export const IconSuccess\n export const IconCopy\n export const IconCog\n export const Tooltip\n export const Totalizer\n export const ToastConsumer\n export const ToastProvider\n export const ToastContext\n export const withToast\n export const ButtonWithIcon\n export const Pagination\n export const Collapsible\n export const Textarea\n export const NumericStepper\n export const EmptyState\n export const Tab\n export const Tag\n export const Toggle\n export const Layout\n export const Tabs\n export const Divider\n export const ModalDialog\n export const PageBlock\n export const Slider\n export const AutocompleteInput\n // eslint-disable-next-line @typescript-eslint/naming-convention\n export const EXPERIMENTAL_Modal\n export const RadioGroup\n}\n\n```"
}
] |
code_b2b-quotes_969e979a
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/utils/shallowEquals.ts from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nexport function shallowEqual(\n object1: Record<string, unknown>,\n object2: Record<string, unknown>\n) {\n const keys1 = Object.keys(object1)\n const keys2 = Object.keys(object2)\n\n if (keys1.length !== keys2.length) {\n return false\n }\n\n for (const key of keys1) {\n if (object1[key] !== object2[key]) {\n return false\n }\n }\n\n return true\n}\n\nexport function arrayShallowEqual(\n array1: Array<Record<string, any>>,\n array2: Array<Record<string, any>>\n) {\n let equal = true\n\n for (const [index, member] of array1.entries()) {\n if (!shallowEqual(member, array2[index])) {\n equal = false\n break\n }\n }\n\n return equal\n}\n\n```"
}
] |
code_b2b-quotes_2a7abb7a
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/utils/status.ts from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nexport const enum Status {\n EXPIRED = 'expired',\n PLACED = 'placed',\n DECLINED = 'declined',\n READY = 'ready',\n REVISED = 'revised',\n PENDING = 'pending',\n}\n\nexport const LabelByStatusMap: Record<string, string> = {\n [Status.READY]: 'success',\n [Status.PLACED]: 'neutral',\n [Status.DECLINED]: 'error',\n [Status.EXPIRED]: 'error',\n [Status.PENDING]: 'warning',\n [Status.REVISED]: 'warning',\n}\n\n```"
}
] |
code_b2b-quotes_91a54fd5
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/utils/helpers.ts from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport { useEffect, useState } from 'react'\n\nimport { getSession } from '../modules/session'\nimport { Status } from './status'\n\nexport const initQuoteFromOrderForm = (orderForm: any) => {\n const quoteItems = [] as QuoteItem[]\n\n orderForm?.items?.forEach((item: QuoteItem) => {\n const existingItem = quoteItems.find(\n (existing: QuoteItem) =>\n existing.id === item.id && existing.sellingPrice === item.sellingPrice\n )\n\n if (existingItem) {\n existingItem.quantity += item.quantity\n } else if (item.sellingPrice !== 0) {\n quoteItems.push({\n ...item,\n listPrice: item.listPrice * 100,\n price: item.price * 100,\n sellingPrice: item.sellingPrice * 100,\n })\n }\n })\n\n return quoteItems\n}\n\nexport const itemDiscountEligible = ({\n listPrice,\n sellingPrice,\n error,\n maxDiscountState,\n}: {\n listPrice: number\n sellingPrice: number\n error: boolean | undefined\n maxDiscountState: number\n}) => {\n return !(\n !error &&\n Math.round(100 - (sellingPrice / listPrice) * 100) > maxDiscountState\n )\n}\n\nexport const useSessionResponse = () => {\n const [session, setSession] = useState<unknown>()\n const sessionPromise = getSession()\n\n useEffect(() => {\n if (!sessionPromise) {\n return\n }\n\n sessionPromise.then((sessionResponse) => {\n const { response } = sessionResponse\n\n setSession(response)\n })\n }, [sessionPromise])\n\n return session\n}\n\nexport const getEmptySimpleQuote = (parentQuote: string): QuoteSimple => ({\n id: '',\n referenceName: '',\n subtotal: 0,\n costCenter: '',\n costCenterName: '',\n creatorEmail: '',\n creatorRole: '',\n creationDate: '',\n expirationDate: '',\n lastUpdate: '',\n organization: '',\n organizationName: '',\n status: '',\n viewedByCustomer: true,\n viewedBySales: true,\n parentQuote,\n rowLoading: true,\n})\n\nexport const isQuoteUsable = (permissions: string[], status: string) =>\n permissions.includes('use-quotes') &&\n status &&\n status !== Status.EXPIRED &&\n status !== Status.PLACED &&\n status !== Status.DECLINED\n\n```"
}
] |
code_b2b-quotes_82254085
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/utils/messages.ts from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport { defineMessages } from 'react-intl'\n\nconst storePrefix = 'store/b2b-quotes.'\nconst adminPrefix = 'admin/b2b-quotes.'\n\nexport const quoteMessages = defineMessages({\n updateSuccess: {\n id: `${storePrefix}quote-details.update-success`,\n },\n updateError: {\n id: `${storePrefix}quote-details.update-error`,\n },\n useQuote: {\n id: `${storePrefix}quote-details.use-quote`,\n },\n useError: {\n id: `${storePrefix}quote-details.use-error`,\n },\n updatePageTitle: {\n id: `${storePrefix}quote-details.title`,\n },\n back: {\n id: `${storePrefix}back`,\n },\n subtotal: {\n id: `${storePrefix}quote-details.subtotal.title`,\n },\n expiration: {\n id: `${storePrefix}quote-details.expiration.title`,\n },\n status: {\n id: `${storePrefix}quote-details.status.title`,\n },\n image: {\n id: `${storePrefix}quote-details.items.image.title`,\n },\n refCode: {\n id: `${storePrefix}quote-details.items.refId.title`,\n },\n name: {\n id: `${storePrefix}quote-details.items.name.title`,\n },\n price: {\n id: `${storePrefix}quote-details.items.price.title`,\n },\n quantity: {\n id: `${storePrefix}quote-details.items.quantity.title`,\n },\n total: {\n id: `${storePrefix}quote-details.items.total.title`,\n },\n addNote: {\n id: `${storePrefix}quote-details.add-note.label`,\n },\n percentageDiscount: {\n id: `${storePrefix}quote-details.percentage-discount.title`,\n },\n quotedSubtotal: {\n id: `${storePrefix}quote-details.quoted-subtotal.title`,\n },\n originalSubtotal: {\n id: `${storePrefix}quote-details.original-subtotal.title`,\n },\n quotePrice: {\n id: `${storePrefix}quote-details.quote-price.title`,\n },\n originalPrice: {\n id: `${storePrefix}quote-details.original-price.title`,\n },\n expirationDateChange: {\n id: `${storePrefix}quote-details.expiration-date-change.title`,\n },\n productsTitle: {\n id: `${storePrefix}quote-details.products.title`,\n },\n historyTitle: {\n id: `${storePrefix}quote-details.update-history.title`,\n },\n notesAfterCreatedHelpText: {\n id: `${storePrefix}quote-details.notes-after-created.helpText`,\n },\n createPageTitle: {\n id: `${storePrefix}create.title`,\n },\n createSuccess: {\n id: `${storePrefix}create.success`,\n },\n createError: {\n id: `${storePrefix}create.error`,\n },\n required: {\n id: `${storePrefix}create.required`,\n },\n placeholderName: {\n id: `${storePrefix}create.placeholder.quotationName`,\n },\n labelName: {\n id: `${storePrefix}create.nameLabel`,\n },\n emptyState: {\n id: `${storePrefix}create.empty-state-label`,\n },\n})\n\nexport const tableMessages = defineMessages({\n details: {\n id: `${storePrefix}quotes-table.details.label`,\n },\n refName: {\n id: `${storePrefix}quotes-table.referenceName.title`,\n },\n subtotal: {\n id: `${storePrefix}quotes-table.subtotal.title`,\n },\n email: {\n id: `${storePrefix}quotes-table.creatorEmail.title`,\n },\n creationDate: {\n id: `${storePrefix}quotes-table.creationDate.title`,\n },\n expirationDate: {\n id: `${storePrefix}quotes-table.expirationDate.title`,\n },\n status: {\n id: `${storePrefix}quotes-table.status.title`,\n },\n lastUpdate: {\n id: `${storePrefix}quotes-table.lastUpdate.title`,\n },\n organization: {\n id: `${storePrefix}quotes-table.organization.title`,\n },\n costCenter: {\n id: `${storePrefix}quotes-table.costCenter.title`,\n },\n organizationAndCostCenter: {\n id: `${storePrefix}quotes-table.orgAndCostCenter.title`,\n },\n searchOrganization: {\n id: `${storePrefix}quotes-table.searchOrganization.title`,\n },\n searchCostCenter: {\n id: `${storePrefix}quotes-table.searchCostCenter.title`,\n },\n any: {\n id: `${storePrefix}quotes-table.filters.any`,\n },\n is: {\n id: `${storePrefix}quotes-table.filters.is`,\n },\n emptyState: {\n id: `${storePrefix}quotes-table.empty-state-label`,\n },\n showRows: {\n id: `${storePrefix}quotes-table.showRows`,\n },\n of: {\n id: `${storePrefix}quotes-table.of`,\n },\n placeholderSearch: {\n id: `${storePrefix}quotes-table.search.placeholder`,\n },\n toggleFields: {\n id: `${storePrefix}quotes-table.toggleFields.label`,\n },\n showAllFields: {\n id: `${storePrefix}quotes-table.toggleFields.showAllLabel`,\n },\n hideAllFields: {\n id: `${storePrefix}quotes-table.toggleFields.hideAllLabel`,\n },\n newQuote: {\n id: `${storePrefix}quotes-table.newLine.label`,\n },\n clearFilters: {\n id: `${storePrefix}quotes-table.clearFilters.label`,\n },\n statusFilter: {\n id: `${storePrefix}quotes-table.statusFilter.label`,\n },\n filtersAll: {\n id: `${storePrefix}quotes-table.filters.all`,\n },\n filtersNone: {\n id: `${storePrefix}quotes-table.filters.none`,\n },\n filtersIncludes: {\n id: `${storePrefix}quotes-table.filters.includes`,\n },\n})\n\nexport const statusMessages = defineMessages({\n ready: {\n id: `${storePrefix}quote-status.ready`,\n },\n placed: {\n id: `${storePrefix}quote-status.placed`,\n },\n declined: {\n id: `${storePrefix}quote-status.declined`,\n },\n expired: {\n id: `${storePrefix}quote-status.expired`,\n },\n pending: {\n id: `${storePrefix}quote-status.pending`,\n },\n revised: {\n id: `${storePrefix}quote-status.revised`,\n },\n})\n\nexport const adminMessages = defineMessages({\n settingsPageTitle: {\n id: `${adminPrefix}settings.title`,\n },\n saveSettingsFailure: {\n id: `${adminPrefix}settings.saveSettings.failure`,\n },\n saveSettingsSuccess: {\n id: `${adminPrefix}settings.saveSettings.success`,\n },\n cartLifeSpanLabel: {\n id: `${adminPrefix}settings.cartLifeSpan.label`,\n },\n saveSettingsButtonText: {\n id: `${adminPrefix}settings.saveSettings.buttonText`,\n },\n})\n\n```"
}
] |
code_b2b-quotes_491e1995
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/utils/storage.ts from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nexport default function storageFactory(getStorage: () => Storage): Storage {\n let inMemoryStorage: { [key: string]: string } = {}\n\n function isSupported() {\n try {\n const testKey = '__some_random_key_you_are_not_going_to_use__'\n\n getStorage().setItem(testKey, testKey)\n getStorage().removeItem(testKey)\n\n return true\n } catch (e) {\n return false\n }\n }\n\n function clear(): void {\n if (isSupported()) {\n getStorage().clear()\n } else {\n inMemoryStorage = {}\n }\n }\n\n function getItem(name: string): string | null {\n if (isSupported()) {\n return getStorage().getItem(name)\n }\n\n // eslint-disable-next-line no-prototype-builtins\n if (inMemoryStorage.hasOwnProperty(name)) {\n return inMemoryStorage[name]\n }\n\n return null\n }\n\n function key(index: number): string | null {\n if (isSupported()) {\n return getStorage().key(index)\n }\n\n return Object.keys(inMemoryStorage)[index] || null\n }\n\n function removeItem(name: string): void {\n if (isSupported()) {\n getStorage().removeItem(name)\n } else {\n delete inMemoryStorage[name]\n }\n }\n\n function setItem(name: string, value: string): void {\n if (isSupported()) {\n getStorage().setItem(name, value)\n } else {\n inMemoryStorage[name] = String(value) // not everyone uses TypeScript\n }\n }\n\n function length(): number {\n if (isSupported()) {\n return getStorage().length\n }\n\n return Object.keys(inMemoryStorage).length\n }\n\n return {\n getItem,\n setItem,\n removeItem,\n clear,\n key,\n get length() {\n return length()\n },\n }\n}\n\n```"
}
] |
code_b2b-quotes_b26ec544
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/components/QuotesTable.css from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```css\n.tableContainer :global(.dtc) > :global(.vtex-styleguide-9-x-rotate) {\n position: absolute;\n top: 200px;\n}\n\n```"
}
] |
code_b2b-quotes_67ed7380
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/components/OrganizationAndCostCenterFilter.tsx from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\n/* eslint-disable react-hooks/exhaustive-deps */\nimport React, { useEffect, useState, useCallback } from 'react'\nimport { useQuery } from 'react-apollo'\nimport { useIntl } from 'react-intl'\nimport { AutocompleteInput } from 'vtex.styleguide'\n\nimport { tableMessages } from '../utils/messages'\nimport GET_ORGANIZATIONS from '../graphql/getOrganizations.graphql'\nimport GET_ORGANIZATION_BY_ID from '../graphql/getOrganization.graphql'\nimport GET_COSTCENTERS_BY_ORGANIZATION_ID from '../graphql/getCostCentersByOrganizationId.graphql'\nimport GET_COSTCENTER_BY_ID from '../graphql/getCostCenter.graphql'\n\nconst initialState = {\n search: '',\n page: 1,\n pageSize: 25,\n sortOrder: 'ASC',\n sortedBy: 'name',\n}\n\nexport interface OrgAndCC {\n organizationId: string\n costCenterId: string\n}\n\ninterface Value {\n value: string | null\n label: string\n}\n\ninterface OrganizationOrCostCenter {\n id: string\n name: string\n}\n\ninterface Props {\n onChange: (value: OrgAndCC) => void\n showOrganizationFilter: boolean\n organizationId: string\n costCenterId: string\n}\n\ninterface OrgProps {\n onChange: (value: string) => void\n organizationId: string\n}\n\ninterface CCProps {\n onChange: (value: string) => void\n organizationId: string\n costCenterId: string\n}\n\nconst mapOrgOrCostCenter = (item: OrganizationOrCostCenter) => {\n return {\n value: item.id,\n label: item.name,\n }\n}\n\nconst OrganizationsAutocomplete = ({ onChange, organizationId }: OrgProps) => {\n const { formatMessage } = useIntl()\n const [term, setTerm] = useState('')\n const [values, setValues] = useState([] as Value[])\n const { data, loading, refetch } = useQuery(GET_ORGANIZATIONS, {\n variables: { ...initialState, status: ['active', 'on-hold', 'inactive'] },\n ssr: false,\n notifyOnNetworkStatusChange: true,\n })\n\n const { data: organization } = useQuery(GET_ORGANIZATION_BY_ID, {\n variables: { id: organizationId },\n ssr: false,\n fetchPolicy: 'network-only',\n skip: !organizationId,\n notifyOnNetworkStatusChange: true,\n })\n\n useEffect(() => {\n if (organization?.getOrganizationById) {\n setValues([mapOrgOrCostCenter(organization.getOrganizationById)])\n }\n }, [organization])\n\n useEffect(() => {\n if (data?.getOrganizations?.data) {\n setValues(\n data.getOrganizations.data.map((item: OrganizationOrCostCenter) =>\n mapOrgOrCostCenter(item)\n )\n )\n }\n }, [data])\n\n useEffect(() => {\n if (term && term.length > 2) {\n refetch({\n ...initialState,\n status: ['active', 'on-hold', 'inactive'],\n search: term,\n })\n } else if (term === '') {\n onChange('')\n }\n }, [term, onChange, refetch])\n\n const options = {\n onSelect: (value: Value) => {\n setTerm(value.label ?? '')\n onChange(value.value ?? '')\n },\n loading,\n value: values,\n }\n\n const input = {\n onChange: (_term: string) => {\n setTerm(_term)\n },\n onClear: () => onChange(''),\n placeholder: formatMessage(tableMessages.searchOrganization),\n value: term,\n }\n\n return <AutocompleteInput input={input} options={options} />\n}\n\nconst CostCentersAutocomplete = ({\n onChange,\n organizationId,\n costCenterId,\n}: CCProps) => {\n const { formatMessage } = useIntl()\n const [term, setTerm] = useState('')\n const [values, setValues] = useState([] as Value[])\n const { data, loading, refetch } = useQuery(\n GET_COSTCENTERS_BY_ORGANIZATION_ID,\n {\n variables: { ...initialState, id: organizationId },\n ssr: false,\n notifyOnNetworkStatusChange: true,\n }\n )\n\n const { data: costCenter } = useQuery(GET_COSTCENTER_BY_ID, {\n variables: { id: costCenterId },\n ssr: false,\n fetchPolicy: 'network-only',\n notifyOnNetworkStatusChange: true,\n })\n\n const options = {\n onSelect: (value: Value) => onChange(value.value ?? ''),\n loading,\n value: values,\n }\n\n const onClear = useCallback(() => {\n setTerm('')\n onChange('')\n }, [setTerm, onChange])\n\n useEffect(() => {\n if (!organizationId) return\n\n refetch({\n ...initialState,\n id: organizationId,\n })\n }, [organizationId, refetch])\n\n useEffect(() => {\n if (!costCenter) {\n return\n }\n\n const { name, id } = costCenter.getCostCenterById\n\n setTerm(name)\n onChange(id)\n }, [costCenter])\n\n useEffect(() => {\n if (data?.getCostCentersByOrganizationId?.data) {\n setValues(\n data.getCostCentersByOrganizationId.data.map(\n (item: OrganizationOrCostCenter) => mapOrgOrCostCenter(item)\n )\n )\n }\n }, [data])\n\n useEffect(() => {\n if (term && term.length > 2) {\n refetch({\n ...initialState,\n id: organizationId,\n search: term,\n })\n } else if (term === '') {\n onClear()\n }\n }, [term, organizationId, refetch])\n\n const input = {\n onChange: (_term: string) => {\n setTerm(_term)\n },\n onClear,\n placeholder: formatMessage(tableMessages.searchCostCenter),\n value: term,\n }\n\n if (!organizationId) return null\n\n return <AutocompleteInput input={input} options={options} />\n}\n\nconst OrganizationAndCostCenterFilter = ({\n onChange,\n showOrganizationFilter = false,\n organizationId,\n costCenterId,\n}: Props) => {\n const [orgState, setOrgState] = useState(organizationId)\n const [costCenterState, setCostCenterState] = useState(costCenterId)\n\n const onChangeOrganization = useCallback((value: string) => {\n setOrgState(value)\n setCostCenterState('')\n }, [])\n\n const onChangeCostCenter = useCallback(\n (value: string) => {\n onChange({ organizationId: orgState, costCenterId: value })\n },\n [orgState, onChange]\n )\n\n return (\n <div>\n {showOrganizationFilter && (\n <OrganizationsAutocomplete\n onChange={onChangeOrganization}\n organizationId={organizationId}\n />\n )}\n <CostCentersAutocomplete\n onChange={onChangeCostCenter}\n organizationId={orgState}\n costCenterId={costCenterState}\n />\n </div>\n )\n}\n\nexport default OrganizationAndCostCenterFilter\n\n```"
}
] |
code_b2b-quotes_2c061ba4
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/components/QuotesTable.tsx from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\n/* eslint-disable react/display-name */\nimport type { FunctionComponent, ChangeEvent } from 'react'\nimport React from 'react'\nimport {\n PageBlock,\n Table,\n Tag,\n Checkbox,\n Spinner,\n Tooltip,\n} from 'vtex.styleguide'\nimport { useIntl, FormattedMessage } from 'react-intl'\nimport { FormattedCurrency } from 'vtex.format-currency'\nimport { useRuntime } from 'vtex.render-runtime'\n\nimport { tableMessages, statusMessages } from '../utils/messages'\nimport ChildrenQuotesColumn from './ChildrenQuotesColumn'\nimport OrganizationAndCostCenterFilter from './OrganizationAndCostCenterFilter'\nimport type { OrgAndCC } from './OrganizationAndCostCenterFilter'\nimport { LabelByStatusMap } from '../utils/status'\nimport { getEmptySimpleQuote } from '../utils/helpers'\nimport styles from './QuotesTable.css'\n\ninterface QuotesTableProps {\n permissions: string[]\n mainOrganizationId: string\n quotes: QuoteSimple[]\n page: number\n pageSize: number\n total: number\n loading: boolean\n handlePrevClick: () => void\n handleNextClick: () => void\n handleRowsChange: (e: ChangeEvent<HTMLInputElement>) => void\n searchValue: string\n handleInputSearchChange: (e: React.FormEvent<HTMLInputElement>) => void\n handleInputSearchClear: () => void\n handleInputSearchSubmit: () => void\n handleNewQuote?: () => void\n sortedBy: string\n sortOrder: string\n handleSort: ({\n sortOrder,\n sortedBy,\n }: {\n sortOrder: string\n sortedBy: string\n }) => void\n filterStatements: unknown[]\n handleFiltersChange: (statements: FilterStatement[]) => void\n}\n\ninterface CellRendererProps {\n cellData: unknown\n rowData: QuoteSimple\n updateCellMeasurements: () => void\n}\n\nconst QuotesTable: FunctionComponent<QuotesTableProps> = ({\n permissions,\n mainOrganizationId,\n quotes: mainQuotes,\n page,\n pageSize,\n total,\n loading,\n handleNextClick,\n handlePrevClick,\n handleRowsChange,\n searchValue,\n handleInputSearchChange,\n handleInputSearchClear,\n handleInputSearchSubmit,\n sortedBy,\n sortOrder,\n handleSort,\n filterStatements,\n handleFiltersChange,\n}) => {\n const { formatMessage, formatDate } = useIntl()\n const { navigate } = useRuntime()\n const isSalesRep = permissions.some(\n (permission) => permission.indexOf('edit-quotes') >= 0\n )\n\n const [expandedQuotes, setExpandedQuotes] = React.useState<string[]>([])\n const [childrenQuotes, setChildrenQuotes] = React.useState<\n Record<string, [QuoteSimple]>\n >({})\n\n const quotes: QuoteSimple[] = []\n\n for (const quote of mainQuotes) {\n quotes.push(quote)\n\n if (quote.hasChildren && expandedQuotes.includes(quote.id)) {\n if (childrenQuotes[quote.id]) {\n quotes.push(\n ...childrenQuotes[quote.id].map((child) => ({\n ...child,\n referenceName:\n child.sellerName ?? child.seller ?? child.referenceName,\n }))\n )\n } else {\n for (let i = 0; i < (quote.childrenQuantity ?? 1); i++) {\n quotes.push(getEmptySimpleQuote(quote.id))\n }\n }\n }\n }\n\n const cleanChildrenStates = () => {\n setExpandedQuotes([])\n setChildrenQuotes({})\n }\n\n const someHasChildren = quotes.some((quote) => quote.hasChildren)\n const showOrganizationFilter = permissions.includes('access-quotes-all')\n const showCostCenterFilter =\n showOrganizationFilter || permissions.includes('access-quotes-organization')\n\n const handleNewQuote = () => {\n navigate({ page: 'store.create-b2b-quote' })\n }\n\n const lineActions = [\n {\n label: () => formatMessage(tableMessages.details),\n onClick: ({ rowData: { id } }: CellRendererProps) => {\n if (!id) return\n\n navigate({\n page: 'store.b2b-quote-details',\n params: { id },\n })\n },\n },\n ]\n\n const getSchema = () => ({\n properties: {\n ...(someHasChildren && {\n hasChildren: {\n title: ' ',\n width: 25,\n cellRenderer: ({ rowData }: CellRendererProps) => {\n return (\n <ChildrenQuotesColumn\n quote={rowData}\n childrenQuotes={childrenQuotes}\n setChildrenQuotes={setChildrenQuotes}\n expandedQuotes={expandedQuotes}\n setExpandedQuotes={setExpandedQuotes}\n />\n )\n },\n },\n }),\n referenceName: {\n title: formatMessage(tableMessages.refName),\n width: 200,\n cellRenderer: ({\n rowData: {\n viewedByCustomer,\n viewedBySales,\n referenceName,\n parentQuote,\n rowLoading,\n childrenQuantity,\n },\n }: CellRendererProps) => {\n let renderedName = <>{rowLoading ? <Spinner /> : referenceName}</>\n\n if (\n (isSalesRep && !viewedBySales) ||\n (!isSalesRep && !viewedByCustomer)\n ) {\n renderedName = <strong>{referenceName}</strong>\n }\n\n return (\n <Tooltip\n label={`${referenceName}${\n childrenQuantity ? ` (${childrenQuantity})` : ''\n }`}\n >\n <div {...(!!parentQuote && { className: 'pl7' })}>\n {renderedName}\n {!!childrenQuantity && (\n <span className=\"c-muted-2 pl3\">({childrenQuantity})</span>\n )}\n </div>\n </Tooltip>\n )\n },\n },\n subtotal: {\n title: formatMessage(tableMessages.subtotal),\n headerRight: true,\n cellRenderer: ({\n rowData: { subtotal, rowLoading },\n }: CellRendererProps) => {\n return (\n <div className=\"w-100 tr\">\n {rowLoading ? (\n '---'\n ) : (\n <FormattedCurrency value={subtotal / 100} />\n )}\n </div>\n )\n },\n },\n creatorEmail: {\n title: formatMessage(tableMessages.email),\n cellRenderer: ({\n rowData: { creatorEmail, rowLoading },\n }: CellRendererProps) => {\n if (rowLoading) return '---'\n\n return <>{creatorEmail}</>\n },\n },\n creationDate: {\n title: formatMessage(tableMessages.creationDate),\n cellRenderer: ({\n rowData: { creationDate, rowLoading },\n }: CellRendererProps) => {\n if (rowLoading) return '---'\n\n return (\n <>\n {formatDate(creationDate, {\n day: 'numeric',\n month: 'numeric',\n year: 'numeric',\n })}\n </>\n )\n },\n sortable: true,\n },\n expirationDate: {\n title: formatMessage(tableMessages.expirationDate),\n cellRenderer: ({\n rowData: { expirationDate, rowLoading },\n }: CellRendererProps) => {\n if (!expirationDate || rowLoading) return '---'\n\n return (\n <>\n {formatDate(expirationDate, {\n day: 'numeric',\n month: 'numeric',\n year: 'numeric',\n })}\n </>\n )\n },\n sortable: true,\n },\n status: {\n title: formatMessage(tableMessages.status),\n cellRenderer: ({\n rowData: { status, rowLoading },\n }: CellRendererProps) => {\n if (rowLoading) return '---'\n\n return (\n <Tag type={LabelByStatusMap[status]}>\n <FormattedMessage\n id={statusMessages[status as keyof typeof statusMessages].id}\n />\n </Tag>\n )\n },\n sortable: true,\n },\n lastUpdate: {\n title: formatMessage(tableMessages.lastUpdate),\n cellRenderer: ({\n rowData: { lastUpdate, rowLoading },\n }: CellRendererProps) => {\n if (rowLoading) return '---'\n\n return (\n <>\n {formatDate(lastUpdate, {\n day: 'numeric',\n month: 'numeric',\n year: 'numeric',\n })}\n </>\n )\n },\n sortable: true,\n },\n organization: {\n title: formatMessage(tableMessages.organization),\n sortable: true,\n cellRenderer: ({\n rowData: { organizationName, rowLoading },\n }: CellRendererProps) => {\n if (rowLoading) return '---'\n\n return <>{organizationName}</>\n },\n },\n costCenter: {\n title: formatMessage(tableMessages.costCenter),\n sortable: true,\n cellRenderer: ({\n rowData: { costCenterName, rowLoading },\n }: CellRendererProps) => {\n if (rowLoading) return '---'\n\n return <>{costCenterName}</>\n },\n },\n },\n })\n\n const statusSelectorObject = ({\n value,\n onChange,\n }: {\n value: Record<string, unknown>\n onChange: any\n }) => {\n const initialValue = {\n ready: true,\n placed: true,\n declined: true,\n expired: true,\n pending: true,\n revised: true,\n ...(value || {}),\n } as Record<string, unknown>\n\n const toggleValueByKey = (key: string) => {\n return {\n ...(value || initialValue),\n [key]: value ? !value[key] : false,\n }\n }\n\n return (\n <div>\n {Object.keys(initialValue).map((opt, index) => {\n return (\n <div className=\"mb3\" key={`status-select-object-${opt}-${index}`}>\n <Checkbox\n checked={value ? value[opt] : initialValue[opt]}\n label={formatMessage(\n statusMessages[opt as keyof typeof statusMessages]\n )}\n name=\"status-checkbox-group\"\n onChange={() => {\n const newValue = toggleValueByKey(`${opt}`)\n const newValueKeys = Object.keys(newValue)\n const isEmptyFilter = !newValueKeys.some(\n (key) => !newValue[key]\n )\n\n onChange(isEmptyFilter ? null : newValue)\n }}\n value={opt}\n />\n </div>\n )\n })}\n </div>\n )\n }\n\n const organizationFilter = ({\n value,\n onChange,\n }: {\n value: OrgAndCC\n onChange: any\n }) => {\n let orgId = value?.organizationId || ''\n\n if (!showOrganizationFilter) {\n orgId = mainOrganizationId\n }\n\n return (\n <OrganizationAndCostCenterFilter\n showOrganizationFilter={showOrganizationFilter}\n organizationId={orgId}\n costCenterId={value?.costCenterId || ''}\n onChange={({ organizationId, costCenterId }: OrgAndCC) =>\n onChange({ organizationId, costCenterId })\n }\n />\n )\n }\n\n return (\n <PageBlock>\n <div className={`${styles.tableContainer} relative`}>\n <Table\n density=\"low\"\n fullWidth\n items={quotes}\n loading={loading}\n schema={getSchema()}\n lineActions={lineActions}\n onRowClick={({ rowData: { id } }: CellRendererProps) => {\n if (!id) return\n\n navigate({\n page: 'store.b2b-quote-details',\n params: { id },\n })\n }}\n emptyStateLabel={formatMessage(tableMessages.emptyState)}\n pagination={{\n onNextClick: () => {\n cleanChildrenStates()\n handleNextClick()\n },\n onPrevClick: () => {\n cleanChildrenStates()\n handlePrevClick()\n },\n onRowsChange: (e: ChangeEvent<HTMLInputElement>) => {\n cleanChildrenStates()\n handleRowsChange(e)\n },\n currentItemFrom: (page - 1) * pageSize + 1,\n currentItemTo: total < page * pageSize ? total : page * pageSize,\n textShowRows: formatMessage(tableMessages.showRows),\n textOf: formatMessage(tableMessages.of),\n totalItems: total,\n rowsOptions: [25, 50, 100],\n }}\n toolbar={{\n inputSearch: {\n value: searchValue,\n placeholder: formatMessage(tableMessages.placeholderSearch),\n onChange: (e: React.FormEvent<HTMLInputElement>) => {\n cleanChildrenStates()\n handleInputSearchChange(e)\n },\n onClear: () => {\n cleanChildrenStates()\n handleInputSearchClear()\n },\n onSubmit: () => {\n cleanChildrenStates()\n handleInputSearchSubmit()\n },\n },\n fields: {\n label: formatMessage(tableMessages.toggleFields),\n showAllLabel: formatMessage(tableMessages.showAllFields),\n hideAllLabel: formatMessage(tableMessages.hideAllFields),\n },\n newLine: {\n label: formatMessage(tableMessages.newQuote),\n handleCallback: handleNewQuote,\n },\n }}\n sort={{\n sortedBy,\n sortOrder,\n }}\n onSort={(sortArgs: { sortOrder: string; sortedBy: string }) => {\n cleanChildrenStates()\n handleSort(sortArgs)\n }}\n filters={{\n alwaysVisibleFilters: [\n 'status',\n ...(showCostCenterFilter ? ['organizationAndCostCenter'] : []),\n ],\n statements: filterStatements,\n onChangeStatements: (statements: FilterStatement[]) => {\n cleanChildrenStates()\n handleFiltersChange(statements)\n },\n clearAllFiltersButtonLabel: formatMessage(\n tableMessages.clearFilters\n ),\n collapseLeft: true,\n options: {\n status: {\n label: formatMessage(tableMessages.statusFilter),\n renderFilterLabel: (st: any) => {\n if (!st?.object) {\n // you should treat empty object cases only for alwaysVisibleFilters\n return formatMessage(tableMessages.filtersAll)\n }\n\n const keys = st.object ? Object.keys(st.object) : []\n const isAllTrue = !keys.some((key) => !st.object[key])\n const isAllFalse = !keys.some((key) => st.object[key])\n const trueKeys = keys.filter((key) => st.object[key])\n let trueKeysLabel = ''\n\n trueKeys.forEach((key, index) => {\n trueKeysLabel += `${key}${\n index === trueKeys.length - 1 ? '' : ', '\n }`\n })\n\n if (isAllTrue) {\n return formatMessage(tableMessages.filtersAll)\n }\n\n if (isAllFalse) {\n return formatMessage(tableMessages.filtersNone)\n }\n\n return `${trueKeysLabel}`\n },\n verbs: [\n {\n label: formatMessage(tableMessages.filtersIncludes),\n value: 'includes',\n object: statusSelectorObject,\n },\n ],\n },\n ...(showCostCenterFilter && {\n organizationAndCostCenter: {\n label: formatMessage(tableMessages.organizationAndCostCenter),\n renderFilterLabel: (st: any) => {\n if (!st?.object) {\n // you should treat empty object cases only for alwaysVisibleFilters\n return formatMessage(tableMessages.filtersAll)\n }\n\n return '...'\n },\n verbs: [\n {\n label: '',\n value: '=',\n object: organizationFilter,\n },\n ],\n },\n }),\n },\n }}\n />\n </div>\n </PageBlock>\n )\n}\n\nexport default QuotesTable\n\n```"
}
] |
code_b2b-quotes_f87a2ea5
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/components/AppSettings.tsx from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport type { FC } from 'react'\nimport React, { useState, useEffect } from 'react'\nimport { useQuery, useMutation } from 'react-apollo'\nimport { FormattedMessage, useIntl } from 'react-intl'\nimport type { NumberInputValue } from '@vtex/admin-ui'\nimport { RadioGroup } from 'vtex.styleguide'\nimport {\n Page,\n PageHeader,\n PageHeaderTop,\n PageHeaderTitle,\n PageContent,\n Box,\n Button,\n NumberInput,\n Skeleton,\n useToast,\n} from '@vtex/admin-ui'\n\nimport { adminMessages } from '../utils/messages'\nimport APP_SETTINGS from '../graphql/getAppSettings.graphql'\nimport SAVE_APP_SETTINGS from '../graphql/saveAppSettings.graphql'\n\nconst AppSettings: FC = () => {\n const { formatMessage } = useIntl()\n const showToast = useToast()\n\n const [settingsState, setSettingsState] = useState({\n cartLifeSpan: 30,\n })\n\n const [quotesManagedValue, setQuotesManagedValue] = useState({\n value: 'MARKETPLACE',\n })\n\n const [settingsLoading, setSettingsLoading] = useState(false)\n\n const { data, loading } = useQuery(APP_SETTINGS, {\n ssr: false,\n onCompleted: (insideData) => {\n if (insideData?.getAppSettings?.adminSetup) {\n setSettingsState(insideData.getAppSettings.adminSetup)\n setQuotesManagedValue({\n value: insideData.getAppSettings.adminSetup.quotesManagedBy,\n })\n }\n },\n })\n\n const [saveSettings] = useMutation(SAVE_APP_SETTINGS)\n\n useEffect(() => {\n if (!data?.getAppSettings?.adminSetup) return\n\n setSettingsState(data.getAppSettings.adminSetup)\n }, [data])\n\n const handleSaveSettings = () => {\n setSettingsLoading(true)\n\n saveSettings({\n variables: {\n input: {\n cartLifeSpan: settingsState.cartLifeSpan,\n quotesManagedBy: quotesManagedValue.value,\n },\n },\n })\n .then(() => {\n showToast({\n message: formatMessage(adminMessages.saveSettingsSuccess),\n duration: 5000,\n })\n setSettingsLoading(false)\n })\n .catch((err) => {\n console.error(err)\n showToast({\n message: formatMessage(adminMessages.saveSettingsFailure),\n duration: 5000,\n tone: 'critical',\n })\n setSettingsLoading(false)\n })\n }\n\n return (\n <Page>\n <PageHeader>\n <PageHeaderTop>\n <PageHeaderTitle>\n {formatMessage(adminMessages.settingsPageTitle)}\n </PageHeaderTitle>\n </PageHeaderTop>\n </PageHeader>\n {loading && <Skeleton shape=\"rect\" />}\n {data?.getAppSettings?.adminSetup && (\n <PageContent\n csx={{\n padding: 8,\n display: 'flex',\n flexDirection: 'column',\n maxWidth: '720px',\n width: '100%',\n }}\n >\n <Box>\n <h3 style={{ fontSize: '1rem', fontWeight: 600 }}>\n <FormattedMessage id=\"admin/b2b-quotes.settings.saveSettings.management.quotes.expiration.data\" />\n </h3>\n </Box>\n <Box as=\"section\" csx={{ marginBottom: 32 }}>\n <NumberInput\n value={settingsState.cartLifeSpan}\n label={formatMessage(adminMessages.cartLifeSpanLabel)}\n min={1}\n onBlur={() => {\n if (settingsState.cartLifeSpan < 1) {\n setSettingsState({\n ...settingsState,\n cartLifeSpan: 1,\n })\n }\n }}\n onChange={(value: NumberInputValue) => {\n setSettingsState({\n ...settingsState,\n cartLifeSpan: Number(value),\n })\n }}\n />\n </Box>\n <Box as=\"section\" csx={{ marginBottom: 16 }}>\n <h3 style={{ fontSize: '1rem', fontWeight: 600 }}>\n <FormattedMessage id=\"admin/b2b-quotes.settings.saveSettings.management.quotes.title\" />\n </h3>\n <p style={{ fontSize: '0.875rem' }} className=\"c-muted-1 mt1\">\n <FormattedMessage id=\"admin/b2b-quotes.settings.saveSettings.management.quotes.description\" />\n </p>\n <p style={{ fontSize: '0.875rem' }} className=\"c-muted-1 mt6 mb4\">\n <FormattedMessage id=\"admin/b2b-quotes.settings.saveSettings.management.quotes.info\" />\n </p>\n <div style={{ display: 'flex', gap: 8 }}>\n <RadioGroup\n hideBorder\n name=\"paymentMethods\"\n options={[\n {\n value: 'MARKETPLACE',\n label: (\n <div>\n <span style={{ fontSize: '0.875rem' }}>\n <FormattedMessage id=\"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one\" />\n </span>\n <p\n style={{ fontSize: '0.75rem' }}\n className=\"c-muted-1\"\n >\n <FormattedMessage id=\"admin/b2b-quotes.settings.saveSettings.management.quotes.option.one.describe\" />\n </p>\n </div>\n ),\n },\n {\n value: 'SELLER',\n label: (\n <div>\n <span style={{ fontSize: '0.875rem' }}>\n <FormattedMessage id=\"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two\" />\n </span>\n <p\n style={{ fontSize: '0.75rem' }}\n className=\"c-muted-1\"\n >\n <FormattedMessage id=\"admin/b2b-quotes.settings.saveSettings.management.quotes.option.two.describe\" />\n </p>\n </div>\n ),\n },\n ]}\n value={quotesManagedValue.value}\n onChange={(e: React.ChangeEvent<HTMLInputElement>) =>\n setQuotesManagedValue({ value: e.currentTarget.value })\n }\n />\n </div>\n </Box>\n <Box csx={{ marginTop: 16 }}>\n <Button\n disabled={settingsState.cartLifeSpan < 1}\n variant=\"primary\"\n onClick={() => handleSaveSettings()}\n loading={settingsLoading}\n >\n {formatMessage(adminMessages.saveSettingsButtonText)}\n </Button>\n </Box>\n </PageContent>\n )}\n </Page>\n )\n}\n\nexport default AppSettings\n\n```"
}
] |
code_b2b-quotes_0010662b
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/components/ChildrenQuotesColumn.tsx from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport type { FunctionComponent } from 'react'\nimport React from 'react'\nimport { useLazyQuery } from 'react-apollo'\nimport { ButtonPlain, IconCaretDown, IconCaretRight } from 'vtex.styleguide'\n\nimport GET_CHILDREN_QUOTES from '../graphql/getChildrenQuotes.graphql'\nimport { arrayShallowEqual } from '../utils/shallowEquals'\nimport ButtonCollapseWrapper from './ButtonCollapseWrapper'\n\ntype ChildrenQuotesColumnProps = {\n quote: QuoteSimple\n expandedQuotes: string[]\n setExpandedQuotes: React.Dispatch<React.SetStateAction<string[]>>\n childrenQuotes: Record<string, [QuoteSimple]>\n setChildrenQuotes: React.Dispatch<\n React.SetStateAction<Record<string, [QuoteSimple]>>\n >\n}\n\nconst ChildrenQuotesColumn: FunctionComponent<ChildrenQuotesColumnProps> = ({\n quote,\n expandedQuotes,\n setExpandedQuotes,\n childrenQuotes,\n setChildrenQuotes,\n}: ChildrenQuotesColumnProps) => {\n const { hasChildren, id } = quote\n\n const [fetchChildrenQuotes] = useLazyQuery(GET_CHILDREN_QUOTES, {\n fetchPolicy: 'cache-and-network',\n onCompleted({ getChildrenQuotes }) {\n const [firstChild] = getChildrenQuotes\n const { parentQuote } = firstChild\n const prevChildrenQuotes = childrenQuotes[parentQuote]\n\n if (\n !prevChildrenQuotes ||\n !arrayShallowEqual(prevChildrenQuotes, getChildrenQuotes)\n ) {\n setChildrenQuotes((prev) => ({\n ...prev,\n [parentQuote]: getChildrenQuotes,\n }))\n }\n },\n })\n\n if (!hasChildren) return null\n\n if (expandedQuotes.includes(id)) {\n return (\n <ButtonCollapseWrapper>\n <ButtonPlain\n onClick={(e: React.MouseEvent) => {\n e.stopPropagation()\n setExpandedQuotes((prev) => prev.filter((i) => i !== id))\n }}\n >\n <IconCaretDown size={10} />\n </ButtonPlain>\n </ButtonCollapseWrapper>\n )\n }\n\n return (\n <ButtonCollapseWrapper>\n <ButtonPlain\n onClick={(e: React.MouseEvent) => {\n e.stopPropagation()\n setExpandedQuotes((prev) => [...prev, id])\n fetchChildrenQuotes({ variables: { id } })\n }}\n >\n <IconCaretRight size={10} />\n </ButtonPlain>\n </ButtonCollapseWrapper>\n )\n}\n\nexport default ChildrenQuotesColumn\n\n```"
}
] |
code_b2b-quotes_961050c8
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-quotes/react/components/QuotesTableContainer.tsx from the b2b-quotes VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport type { FunctionComponent, ChangeEvent } from 'react'\nimport React, { useState } from 'react'\nimport { useQuery } from 'react-apollo'\nimport { FormattedMessage } from 'react-intl'\nimport { useRuntime } from 'vtex.render-runtime'\nimport { Layout, PageHeader, PageBlock, Spinner } from 'vtex.styleguide'\n\nimport { useSessionResponse } from '../utils/helpers'\nimport QuotesTable from './QuotesTable'\nimport GET_QUOTES from '../graphql/getQuotes.graphql'\nimport GET_MAIN_ORGANIZATION from '../graphql/getMainOrganization.graphql'\nimport GET_PERMISSIONS from '../graphql/getPermissions.graphql'\nimport storageFactory from '../utils/storage'\n\nconst localStore = storageFactory(() => localStorage)\n\nlet isAuthenticated =\n JSON.parse(String(localStore.getItem('b2bquotes_isAuthenticated'))) ?? false\n\nconst QuotesTableContainer: FunctionComponent = () => {\n const { navigate, rootPath } = useRuntime()\n const [paginationState, setPaginationStateOriginal] = useState({\n page: 1,\n pageSize: 25,\n })\n\n const setPaginationState = (\n paginationArgs: typeof paginationState,\n scrollToTop = true\n ) => {\n setPaginationStateOriginal(paginationArgs)\n\n if (scrollToTop) {\n window.scrollTo(0, 0)\n }\n }\n\n const [filterState, setFilterState] = useState({\n filterStatements: [] as FilterStatement[],\n organization: [] as string[],\n costCenter: [] as string[],\n status: [] as string[],\n })\n\n const [searchState, setSearchState] = useState({\n searchValue: '',\n })\n\n const [sortState, setSortState] = useState({\n sortOrder: 'DESC',\n sortedBy: 'lastUpdate',\n })\n\n const sessionResponse: any = useSessionResponse()\n\n if (sessionResponse) {\n isAuthenticated =\n sessionResponse?.namespaces?.profile?.isAuthenticated?.value === 'true'\n\n localStore.setItem(\n 'b2bquotes_isAuthenticated',\n JSON.stringify(isAuthenticated)\n )\n }\n\n const { data: permissionsData, loading: permissionsLoading } = useQuery(\n GET_PERMISSIONS,\n {\n ssr: false,\n skip: !isAuthenticated,\n }\n )\n\n const {\n data: mainOrganizationData,\n loading: mainOrganizationLoading,\n } = useQuery(GET_MAIN_ORGANIZATION, {\n ssr: false,\n })\n\n const { data, loading, refetch } = useQuery(GET_QUOTES, {\n fetchPolicy: 'network-only',\n notifyOnNetworkStatusChange: true,\n ssr: false,\n })\n\n const handlePrevClick = () => {\n if (paginationState.page === 1) return\n\n const newPage = paginationState.page - 1\n\n setPaginationState({\n ...paginationState,\n page: newPage,\n })\n\n refetch({\n page: newPage,\n pageSize: paginationState.pageSize,\n organization: filterState.organization,\n costCenter: filterState.costCenter,\n status: filterState.status,\n search: searchState.searchValue,\n sortOrder: sortState.sortOrder,\n sortedBy: sortState.sortedBy,\n })\n }\n\n const handleNextClick = () => {\n const newPage = paginationState.page + 1\n\n setPaginationState({\n ...paginationState,\n page: newPage,\n })\n\n refetch({\n page: newPage,\n pageSize: paginationState.pageSize,\n organization: filterState.organization,\n costCenter: filterState.costCenter,\n status: filterState.status,\n search: searchState.searchValue,\n sortOrder: sortState.sortOrder,\n sortedBy: sortState.sortedBy,\n })\n }\n\n const handleRowsChange = (e: ChangeEvent<HTMLInputElement>) => {\n const {\n target: { value },\n } = e\n\n setPaginationState({\n page: 1,\n pageSize: +value,\n })\n\n refetch({\n page: 1,\n pageSize: +value,\n organization: filterState.organization,\n costCenter: filterState.costCenter,\n status: filterState.status,\n search: searchState.searchValue,\n sortOrder: sortState.sortOrder,\n sortedBy: sortState.sortedBy,\n })\n }\n\n const handleFiltersChange = (statements: FilterStatement[]) => {\n const organizations = [] as string[]\n const costCenters = [] as string[]\n const statuses = [] as string[]\n\n statements.forEach((statement) => {\n if (!statement?.object) return\n const { subject, object } = statement\n\n switch (subject) {\n case 'status': {\n if (!object || typeof object !== 'object') return\n const keys = Object.keys(object)\n const isAllTrue = !keys.some((key) => !object[key])\n const isAllFalse = !keys.some((key) => object[key])\n const trueKeys = keys.filter((key) => object[key])\n\n if (isAllTrue) break\n if (isAllFalse) statuses.push('none')\n statuses.push(...trueKeys)\n break\n }\n\n case 'organizationAndCostCenter': {\n if (!object || typeof object !== 'object') return\n\n if (object.organizationId) {\n organizations.push(object.organizationId as string)\n }\n\n if (object.costCenterId) {\n costCenters.push(object.costCenterId as string)\n }\n\n break\n }\n\n default:\n break\n }\n })\n\n setFilterState({\n status: statuses,\n organization: organizations,\n costCenter: costCenters,\n filterStatements: statements,\n })\n\n setPaginationState(\n {\n ...paginationState,\n page: 1,\n },\n false\n )\n\n refetch({\n page: 1,\n pageSize: paginationState.pageSize,\n search: searchState.searchValue,\n sortOrder: sortState.sortOrder,\n sortedBy: sortState.sortedBy,\n status: statuses,\n organization: organizations,\n costCenter: costCenters,\n })\n }\n\n const handleInputSearchChange = (e: React.FormEvent<HTMLInputElement>) => {\n const {\n currentTarget: { value },\n } = e\n\n setSearchState({\n searchValue: value,\n })\n }\n\n const handleInputSearchClear = () => {\n setSearchState({\n searchValue: '',\n })\n\n refetch({\n page: 1,\n pageSize: paginationState.pageSize,\n organization: filterState.organization,\n costCenter: filterState.costCenter,\n status: filterState.status,\n search: '',\n sortOrder: sortState.sortOrder,\n sortedBy: sortState.sortedBy,\n })\n }\n\n const handleInputSearchSubmit = () => {\n refetch({\n page: 1,\n pageSize: paginationState.pageSize,\n organization: filterState.organization,\n costCenter: filterState.costCenter,\n status: filterState.status,\n search: searchState.searchValue,\n sortOrder: sortState.sortOrder,\n sortedBy: sortState.sortedBy,\n })\n }\n\n const handleSort = ({\n sortOrder,\n sortedBy,\n }: {\n sortOrder: string\n sortedBy: string\n }) => {\n setSortState({\n sortOrder,\n sortedBy,\n })\n refetch({\n page: 1,\n pageSize: paginationState.pageSize,\n organization: filterState.organization,\n costCenter: filterState.costCenter,\n status: filterState.status,\n search: searchState.searchValue,\n sortOrder,\n sortedBy,\n })\n }\n\n const QuotesTablePageHeader = () => {\n return (\n <PageHeader\n title={<FormattedMessage id=\"store/b2b-quotes.quotes-table.title\" />}\n linkLabel={<FormattedMessage id=\"store/b2b-quotes.back\" />}\n onLinkClick={() =>\n navigate({\n to: `${rootPath ?? ''}/account`,\n })\n }\n />\n )\n }\n\n if (\n !isAuthenticated ||\n !permissionsData?.checkUserPermission?.permissions?.length ||\n !permissionsData.checkUserPermission.permissions.some(\n (permission: string) => permission.indexOf('access-quotes') >= 0\n )\n ) {\n const message = isAuthenticated ? (\n <FormattedMessage id=\"store/b2b-quotes.error.notPermitted\" />\n ) : (\n <FormattedMessage id=\"store/b2b-quotes.error.notAuthenticated\" />\n )\n\n return (\n <Layout fullWidth>\n <div className=\"mw9 center\">\n <Layout fullWidth pageHeader={<QuotesTablePageHeader />}>\n <PageBlock>{permissionsLoading ? <Spinner /> : message}</PageBlock>\n </Layout>\n </div>\n </Layout>\n )\n }\n\n return (\n <Layout fullWidth>\n <div className=\"mw9 center\">\n <Layout fullWidth pageHeader={<QuotesTablePageHeader />}>\n <QuotesTable\n quotes={data?.getQuotes?.data ?? []}\n mainOrganizationId={\n mainOrganizationData?.getOrganizationByIdStorefront?.id\n }\n permissions={permissionsData.checkUserPermission.permissions}\n page={paginationState.page}\n pageSize={paginationState.pageSize}\n total={data?.getQuotes?.pagination?.total ?? 0}\n loading={loading || permissionsLoading || mainOrganizationLoading}\n handlePrevClick={handlePrevClick}\n handleNextClick={handleNextClick}\n filterStatements={filterState.filterStatements}\n handleFiltersChange={handleFiltersChange}\n handleInputSearchChange={handleInputSearchChange}\n handleInputSearchClear={handleInputSearchClear}\n handleInputSearchSubmit={handleInputSearchSubmit}\n handleRowsChange={handleRowsChange}\n handleSort={handleSort}\n searchValue={searchState.searchValue}\n sortOrder={sortState.sortOrder}\n sortedBy={sortState.sortedBy}\n />\n </Layout>\n </div>\n </Layout>\n )\n}\n\nexport default QuotesTableContainer\n\n```"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.