From fe0b4b9e4ee797d42eb8dd298f169edebd44002b Mon Sep 17 00:00:00 2001 From: Jacob Magnusson Date: Wed, 10 May 2023 16:49:43 +0200 Subject: [PATCH] fix(admin): Color enabled checkbox wasn't applied properly --- ui/src/api.ts | 15 +-- .../admin/AddCollectionItemsModal.tsx | 15 +-- ui/src/locales/en/messages.js | 2 +- ui/src/locales/en/messages.po | 119 ++++++++++-------- ui/src/locales/sv/messages.js | 2 +- ui/src/locales/sv/messages.po | 119 ++++++++++-------- .../pages/app/admin/AdminEditCollection.tsx | 68 +++++----- ui/src/types/admin.ts | 12 ++ 8 files changed, 185 insertions(+), 167 deletions(-) diff --git a/ui/src/api.ts b/ui/src/api.ts index ca23fb9..e6fd2f9 100644 --- a/ui/src/api.ts +++ b/ui/src/api.ts @@ -129,7 +129,6 @@ interface ApiSurface { fetchPriceLists: ( token: string, organizationId: number, - collectionSlug?: string | null, ) => Promise>; fetchCategories: ( token: string, @@ -417,15 +416,10 @@ function makeApi(baseUrl: string): ApiSurface { async fetchPriceLists( token: string, organizationId: number, - collectionSlug?: string | null, ): Promise> { - let filters = {}; - if (!!collectionSlug) { - Object.assign(filters, { collection: { slug: collectionSlug } }); - } return await getJson( `/${organizationId}/pricelists/summary`, - { token, filters }, + { token }, ); }, async fetchCategories( @@ -852,9 +846,7 @@ type PricelistsFetchResult = Result< ApiErrorResponse >; -export function usePricelists( - collectionSlug?: string | null, -): PricelistsFetchResult { +export function usePricelists(): PricelistsFetchResult { const { token, activeOrganization } = useAppSelector((state) => state.user); const [fetchResult, setFetchResult] = useState( Ok(null) as PricelistsFetchResult, @@ -866,13 +858,12 @@ export function usePricelists( .fetchPriceLists( token as string, activeOrganization.organization.id, - collectionSlug, ) .then((result) => { setFetchResult(result); }); } - }, [token, activeOrganization, collectionSlug]); + }, [token, activeOrganization]); return fetchResult; } diff --git a/ui/src/components/admin/AddCollectionItemsModal.tsx b/ui/src/components/admin/AddCollectionItemsModal.tsx index 76eafa0..6b0bbb2 100644 --- a/ui/src/components/admin/AddCollectionItemsModal.tsx +++ b/ui/src/components/admin/AddCollectionItemsModal.tsx @@ -12,11 +12,10 @@ import { import { useNestedStyles } from "../../api"; import { useLocalize } from "../../i18n"; import { cloudflareImageUrl } from "../../images"; -import { EditableStyle, makeEditableStyle } from "../../types/admin"; +import { EditableStyle, makeEditableStyle, transferIsNew } from "../../types/admin"; import { EntityFilterChoice, ItemFilterChoices, - NestedStyle, NestedStyleSummary, StyleFilters, } from "../../types/api"; @@ -27,14 +26,12 @@ type ItemStatus = string; export default function AddCollectionItemsModal({ open, setOpen, - collectionStylesMap, allNestedStylesMap, setEditableStyles, itemFilterChoices, }: { open: boolean; setOpen: Dispatch>; - collectionStylesMap: Map; allNestedStylesMap: Map; setEditableStyles: Dispatch>; itemFilterChoices: ItemFilterChoices; @@ -44,7 +41,6 @@ export default function AddCollectionItemsModal({ const [filters, setFilters] = useState(() => ({} as StyleFilters)); const [nestedStylesResult] = useNestedStyles(filters); const nestedStyles = nestedStylesResult.unwrapOr([]) || []; - // Status filter const [filteredStatuses, setFilteredStatuses] = useState( () => [] as ItemStatus[], @@ -93,15 +89,15 @@ export default function AddCollectionItemsModal({ prevEditableStyles.map((style, idx) => [style.id, idx]), ); const newEditableStyles = nestedStyles.flatMap((nestedStyle) => { - const style = collectionStylesMap.get(nestedStyle.id); const fullStyle = allNestedStylesMap.get(nestedStyle.id); if (fullStyle) { - const newStyle = makeEditableStyle(style || fullStyle, fullStyle); + const newStyle = makeEditableStyle(nestedStyle || fullStyle, fullStyle); const prevIdx = prevMapIndexes.get(nestedStyle.id); if (prevIdx === undefined) { return [newStyle]; } else { - prevEditableStyles[prevIdx] = newStyle; + const prevStyle = prevEditableStyles[prevIdx]; + prevEditableStyles[prevIdx] = transferIsNew(prevStyle, newStyle); return []; } } else { @@ -168,6 +164,7 @@ export default function AddCollectionItemsModal({
Get full insight into<1>your product data.":"<0>Get full insight into<1>your product data.","<0>Share product data<1>faster than ever":"<0>Share product data<1>faster than ever","<0>We care about the protection of your data. Read our <1>Privacy Policy.":"<0>We care about the protection of your data. Read our <1>Privacy Policy.","A list of all the groups in your organization.":"A list of all the groups in your organization.","Active":"Active","Active users":"Active users","Add":"Add","Add collection":"Add collection","Add collection items":"Add collection items","Add collection pricing date":"Add collection pricing date","Add group":"Add group","Add items":"Add items","Add price list":"Add price list","Add pricing":"Add pricing","Add user":"Add user","Additional details":"Additional details","Admin":"Admin","Administrate collections":"Administrate collections","Administrate groups":"Administrate groups","Administrate users":"Administrate users","Administrator":"Administrator","Administrators":"Administrators","Advanced settings":"Advanced settings","Already signed in":"Already signed in","Already signed in.":"Already signed in.","An error occurred":"An error occurred","An error occurred.":"An error occurred.","Any image, up to {maxSizeMegaBytes} MB.":["Any image, up to ",["maxSizeMegaBytes"]," MB."],"Are you sure you want to delete the collection <0>{0}? This action cannot be undone.":["Are you sure you want to delete the collection <0>",["0"],"? This action cannot be undone."],"Are you sure you want to delete the group <0>{0}? This action cannot be undone.":["Are you sure you want to delete the group <0>",["0"],"? This action cannot be undone."],"Are you sure you want to delete the user <0>{0}? This action cannot be undone.":["Are you sure you want to delete the user <0>",["0"],"? This action cannot be undone."],"Attributes":"Attributes","Automatic sign out":"Automatic sign out","Backend error":"Backend error","Basic settings":"Basic settings","CSV":"CSV","Can create and edit groups and collections, in addition to viewer level access.":"Can create and edit groups and collections, in addition to viewer level access.","Can manage users, in addition to editor level access. Also gets full API access, which is useful when creating integrations.":"Can manage users, in addition to editor level access. Also gets full API access, which is useful when creating integrations.","Can sign in.":"Can sign in.","Can view and export collections where explicit access has been configured in Groups.":"Can view and export collections where explicit access has been configured in Groups.","Cancel":"Cancel","Categories":"Categories","Category":"Category","Category name":"Category name","Choose a color":"Choose a color","Clear selection":"Clear selection","Close":"Close","Close sidebar":"Close sidebar","Collection":"Collection","Collection not found":"Collection not found","Collections":"Collections","Color":"Color","Color external id":"Color external id","Color level":"Color level","Color name":"Color name","Color number":"Color number","Colors":"Colors","Colors / Sizes":"Colors / Sizes","Company":"Company","Contact me":"Contact me","Core":"Core","Core style":"Core style","Core styles":"Core styles","Country":"Country","Country of origin":"Country of origin","Cover photo":"Cover photo","Create":"Create","Create collection":"Create collection","Create group":"Create group","Created at":"Created at","Date":"Date","Delete":"Delete","Delete group":"Delete group","Delete<0>, {0}":["Delete<0>, ",["0"],""],"Delivery period":"Delivery period","Delivery period (descending)":"Delivery period (descending)","Description":"Description","Disable all":"Disable all","Download":"Download","Download as":"Download as","Downloading...":"Downloading...","E-mail address":"E-mail address","EAN code":"EAN code","Edit":"Edit","Edit collection":"Edit collection","Edit group":"Edit group","Edit user":"Edit user","Edit {0}":["Edit ",["0"]],"Edit<0>, {0}":["Edit<0>, ",["0"],""],"Editor":"Editor","Editors":"Editors","Email address":"Email address","Enable all":"Enable all","Enter new password here to change...":"Enter new password here to change...","Enter your email":"Enter your email","Error":"Error","Excel":"Excel","Existing image":"Existing image","Export":"Export","External ID":"External ID","Features":"Features","Fields":"Fields","Filters<0>, active":"Filters<0>, active","Format":"Format","Go back home":"Go back home","Go to app":"Go to app","Good amount of variants":"Good amount of variants","Gross weight":"Gross weight","Group by":"Group by","Groups":"Groups","Groups are used to give access to collections and price lists to a specific set of users. The price lists and collections that a user has been granted to via one or more groups are added together. Groups cannot take away access to price lists or collections.":"Groups are used to give access to collections and price lists to a specific set of users. The price lists and collections that a user has been granted to via one or more groups are added together. Groups cannot take away access to price lists or collections.","Groups are used to limit user access to collections and price lists.":"Groups are used to limit user access to collections and price lists.","Home":"Home","Image":"Image","Image for {0}":["Image for ",["0"]],"Image for {0} / {1}":["Image for ",["0"]," / ",["1"]],"Image to upload":"Image to upload","Images":"Images","Inactive users":"Inactive users","It is recommended to give the image a 10:7 ratio and a minimum width and height of 1070 by 750 pixels.":"It is recommended to give the image a 10:7 ratio and a minimum width and height of 1070 by 750 pixels.","Items":"Items","JSON":"JSON","Jane Doe":"Jane Doe","Language":"Language","Last sign in":"Last sign in","Last updated":"Last updated","List is empty.":"List is empty.","Loading...":"Loading...","Log in":"Log in","Login":"Login","Logout":"Logout","Make your changes, then hit save when done.":"Make your changes, then hit save when done.","Make your selection of items to add here. Manual adjustments can be made once added.":"Make your selection of items to add here. Manual adjustments can be made once added.","Manage users, associate roles and groups individually.":"Manage users, associate roles and groups individually.","Name":"Name","New":"New","New collection":"New collection","New color":"New color","New date":"New date","New style":"New style","Newest sign in":"Newest sign in","No access":"No access","No collections":"No collections","North America sales reps":"North America sales reps","Notifications":"Notifications","Number":"Number","Number of colors":"Number of colors","Number of sizes":"Number of sizes","Number of styles":"Number of styles","Often useful for ERP system imports.":"Often useful for ERP system imports.","Oldest sign in":"Oldest sign in","One column per attribute type will be generated.":"One column per attribute type will be generated.","Open options":"Open options","Open sidebar":"Open sidebar","Open user menu":"Open user menu","Or continue with":"Or continue with","Page not found.":"Page not found.","Password":"Password","Password (optional)":"Password (optional)","Pinned Collections":"Pinned Collections","Please go to <0>Samling.io for the production environment.":"Please go to <0>Samling.io for the production environment.","Please select a date.":"Please select a date.","Price dates":"Price dates","Price list":"Price list","Price lists":"Price lists","Price lists<0>, active":"Price lists<0>, active","Pricing":"Pricing","Pricing date":"Pricing date","Pricing dates":"Pricing dates","Pricing stuff.":"Pricing stuff.","Primary image":"Primary image","Product":"Product","Product information":"Product information","Provide your e-mail below to hear from our team.":"Provide your e-mail below to hear from our team.","Recent":"Recent","Remember me":"Remember me","Remove filter":"Remove filter","Remove filter for {0}":["Remove filter for ",["0"]],"Remove from pinned":"Remove from pinned","Remove price list":"Remove price list","Remove {0}":["Remove ",["0"]],"Remove<0>, {0}":["Remove<0>, ",["0"],""],"Removed from pinned":"Removed from pinned","Results from current filters":"Results from current filters","Retail price":"Retail price","Retail price amount":"Retail price amount","Retail price currency":"Retail price currency","Retail price list":"Retail price list","Roles":"Roles","Samling.io logotype":"Samling.io logotype","Save":"Save","Saving...":"Saving...","Search":"Search","Service item":"Service item","Service item styles":"Service item styles","Service items":"Service items","ServiceItem styles":"ServiceItem styles","Settings":"Settings","Share":"Share","Sign In":"Sign In","Sign in":"Sign in","Sign in to your account":"Sign in to your account","Sign in with Microsoft":"Sign in with Microsoft","Sign out":"Sign out","Size":"Size","Size level":"Size level","Size number":"Size number","Size type":"Size type","Slug":"Slug","Some collection name...":"Some collection name...","Some external ID value...":"Some external ID value...","Some group description...":"Some group description...","Some group name...":"Some group name...","Some slug value...":"Some slug value...","Sorry, we couldn’t find the page you’re looking for.":"Sorry, we couldn’t find the page you’re looking for.","Sort by":"Sort by","Status":"Status","Style":"Style","Style description":"Style description","Style external id":"Style external id","Style level":"Style level","Style name":"Style name","Style number":"Style number","Styles":"Styles","Styles, colors and sizes to associate with this collection.":"Styles, colors and sizes to associate with this collection.","Success!":"Success!","Successfully signed in":"Successfully signed in","Successfully signed out":"Successfully signed out","Support":"Support","Tariff no":"Tariff no","Technical error prevents login":"Technical error prevents login","The collection \"{0}\" was successfully created.":["The collection \"",["0"],"\" was successfully created."],"The collection \"{0}\" was successfully updated.":["The collection \"",["0"],"\" was successfully updated."],"The given e-mail and password combination does not exist.":"The given e-mail and password combination does not exist.","The group \"{0}\" was successfully updated.":["The group \"",["0"],"\" was successfully updated."],"The groups that this user belong to.":"The groups that this user belong to.","The price lists to add.":"The price lists to add.","The roles that are assigned to this user.":"The roles that are assigned to this user.","The user \"{0}\" was successfully updated.":["The user \"",["0"],"\" was successfully updated."],"The users that belong to this group.":"The users that belong to this group.","There are no collections available to you. Talk an administrator to get access.":"There are no collections available to you. Talk an administrator to get access.","These are all the collections that exist in the system.":"These are all the collections that exist in the system.","These dates decide which item prices should be picked up for each price list. Each item price is associated with a start date and end date, so the date you choose has to fall within those.":"These dates decide which item prices should be picked up for each price list. Each item price is associated with a start date and end date, so the date you choose has to fall within those.","These roles will be assign to the user and determine what they can and cannot do.":"These roles will be assign to the user and determine what they can and cannot do.","These users have access to the system.":"These users have access to the system.","This color first appears in this collection.":"This color first appears in this collection.","This is a Core style, meaning that it represents the brand's core values.":"This is a Core style, meaning that it represents the brand's core values.","This is a service item, meaning that it's our intention to never run out of stock with this style.":"This is a service item, meaning that it's our intention to never run out of stock with this style.","This is where you create collections and associate styles, colors and sizes to them.":"This is where you create collections and associate styles, colors and sizes to them.","This style first appears in this collection.":"This style first appears in this collection.","Tick the data types that you want to appear on their own separate line in the exported file.":"Tick the data types that you want to appear on their own separate line in the exported file.","Tired of collecting data from multiple different ERP systems and combining them in your Excel sheets? This Software-as-a-Service is your savior.":"Tired of collecting data from multiple different ERP systems and combining them in your Excel sheets? This Software-as-a-Service is your savior.","Tired of collecting data from multiple different ERP systems and combining them in your Excel sheets? This Software-as-a-Service wants to help you.":"Tired of collecting data from multiple different ERP systems and combining them in your Excel sheets? This Software-as-a-Service wants to help you.","To public page":"To public page","Unauthorized.":"Unauthorized.","Unit price amount":"Unit price amount","Unit price currency":"Unit price currency","Unit price list":"Unit price list","Unit prices":"Unit prices","Unit volume":"Unit volume","Up to {maxSizeMegaBytes} MB.":["Up to ",["maxSizeMegaBytes"]," MB."],"Updated at":"Updated at","Upload an image":"Upload an image","Use groups to specify which collections and price lists users have access to.":"Use groups to specify which collections and price lists users have access to.","Use this form to add a new pricing date group.":"Use this form to add a new pricing date group.","Use this form to create a new user. All users can sign in via a Google or Microsoft account matching the entered e-mail address. Filling in a password is optional.":"Use this form to create a new user. All users can sign in via a Google or Microsoft account matching the entered e-mail address. Filling in a password is optional.","Use this form to export the current selection of items to file.":"Use this form to export the current selection of items to file.","Useful for integration with other systems.":"Useful for integration with other systems.","User":"User","User profile":"User profile","Users":"Users","Uses the newer .xlsx format.":"Uses the newer .xlsx format.","View":"View","View details for {0}":["View details for ",["0"]],"View profile":"View profile","Viewer":"Viewer","Viewers":"Viewers","Which collections users of this group will have access to.":"Which collections users of this group will have access to.","Which fields you want to include in the exported file.":"Which fields you want to include in the exported file.","Which format you want to export to.":"Which format you want to export to.","Which format you want to export to. CSV is often useful for import into ERP system and JSON can be helpful for integration developers.":"Which format you want to export to. CSV is often useful for import into ERP system and JSON can be helpful for integration developers.","Which price lists users of this group will have access to.":"Which price lists users of this group will have access to.","Wrong credentials":"Wrong credentials","You are already signed in as {0} ({1})":["You are already signed in as ",["0"]," (",["1"],")"],"You are now signed in with account {0}.":["You are now signed in with account ",["0"],"."],"You don't have access to any organizations. Please contact an administrator.":"You don't have access to any organizations. Please contact an administrator.","You need to sign in to be able to view this page.":"You need to sign in to be able to view this page.","You were automatically signed out from account {userEmail} because of an expired token. Please sign in again.":["You were automatically signed out from account ",["userEmail"]," because of an expired token. Please sign in again."],"You've signed out from account {userEmail}.":["You've signed out from account ",["userEmail"],"."],"YuXQFHDK2OF8Or":"YuXQFHDK2OF8Or","colors":"colors","jane.doe@example.com":"jane.doe@example.com","or drag and drop.":"or drag and drop.","styles":"styles","user@example.com":"user@example.com","{0, plural, =0 {No styles} one {One style} other {# styles}}":[["0","plural",{0:"No styles",one:"One style",other:["#"," styles"]}]],"{0, plural, one {# collection} other {# collections}}":[["0","plural",{one:["#"," collection"],other:["#"," collections"]}]],"{0, plural, one {# price list} other {# price lists}}":[["0","plural",{one:["#"," price list"],other:["#"," price lists"]}]],"{0, plural, one {# style} other {# styles}}":[["0","plural",{one:["#"," style"],other:["#"," styles"]}]],"{0, plural, one {# user} other {# users}}":[["0","plural",{one:["#"," user"],other:["#"," users"]}]],"{0, plural, one {Disable # style} other {Disable # styles}}":[["0","plural",{one:["Disable ","#"," style"],other:["Disable ","#"," styles"]}]],"{0, plural, one {Enable # style} other {Enable # styles}}":[["0","plural",{one:["Enable ","#"," style"],other:["Enable ","#"," styles"]}]],"{0, plural, one {Has one variant} other {Has # variants}}":[["0","plural",{one:"Has one variant",other:["Has ","#"," variants"]}]],"{0, plural, one {Remove # style} other {Remove # styles}}":[["0","plural",{one:["Remove ","#"," style"],other:["Remove ","#"," styles"]}]],"{0}":[["0"]],"{0} (+{1} more)":[["0"]," (+",["1"]," more)"],"{0} [{1}]":[["0"]," [",["1"],"]"],"{0} filter {1}":[["0"]," filter ",["1"]],"{0} logotype":[["0"]," logotype"],"{0} of {1} fields selected":[["0"]," of ",["1"]," fields selected"],"{0} profile":[["0"]," profile"],"{0}, up to {maxSizeMegaBytes} MB.":[["0"],", up to ",["maxSizeMegaBytes"]," MB."]}}; \ No newline at end of file +/*eslint-disable*/module.exports={messages:{"# collections":"# collections","# colors":"# colors","# price lists":"# price lists","# sizes":"# sizes","# styles":"# styles","401 Error":"401 Error","404 Error":"404 Error","<0>Get full insight into<1>your product data.":"<0>Get full insight into<1>your product data.","<0>Share product data<1>faster than ever":"<0>Share product data<1>faster than ever","<0>We care about the protection of your data. Read our <1>Privacy Policy.":"<0>We care about the protection of your data. Read our <1>Privacy Policy.","A list of all the groups in your organization.":"A list of all the groups in your organization.","Active":"Active","Active users":"Active users","Add":"Add","Add collection":"Add collection","Add collection items":"Add collection items","Add collection pricing date":"Add collection pricing date","Add group":"Add group","Add items":"Add items","Add price list":"Add price list","Add pricing":"Add pricing","Add user":"Add user","Additional details":"Additional details","Admin":"Admin","Administrate collections":"Administrate collections","Administrate groups":"Administrate groups","Administrate users":"Administrate users","Administrator":"Administrator","Administrators":"Administrators","Advanced settings":"Advanced settings","Already signed in":"Already signed in","Already signed in.":"Already signed in.","An error occurred":"An error occurred","An error occurred.":"An error occurred.","Any image, up to {maxSizeMegaBytes} MB.":["Any image, up to ",["maxSizeMegaBytes"]," MB."],"Are you sure you want to delete the collection <0>{0}? This action cannot be undone.":["Are you sure you want to delete the collection <0>",["0"],"? This action cannot be undone."],"Are you sure you want to delete the group <0>{0}? This action cannot be undone.":["Are you sure you want to delete the group <0>",["0"],"? This action cannot be undone."],"Are you sure you want to delete the user <0>{0}? This action cannot be undone.":["Are you sure you want to delete the user <0>",["0"],"? This action cannot be undone."],"Attributes":"Attributes","Automatic sign out":"Automatic sign out","Backend error":"Backend error","Basic settings":"Basic settings","CSV":"CSV","Can create and edit groups and collections, in addition to viewer level access.":"Can create and edit groups and collections, in addition to viewer level access.","Can manage users, in addition to editor level access. Also gets full API access, which is useful when creating integrations.":"Can manage users, in addition to editor level access. Also gets full API access, which is useful when creating integrations.","Can sign in.":"Can sign in.","Can view and export collections where explicit access has been configured in Groups.":"Can view and export collections where explicit access has been configured in Groups.","Cancel":"Cancel","Categories":"Categories","Category":"Category","Category name":"Category name","Choose a color":"Choose a color","Clear selection":"Clear selection","Close":"Close","Close sidebar":"Close sidebar","Collection":"Collection","Collection not found":"Collection not found","Collections":"Collections","Color":"Color","Color external id":"Color external id","Color level":"Color level","Color name":"Color name","Color number":"Color number","Colors":"Colors","Colors / Sizes":"Colors / Sizes","Company":"Company","Contact me":"Contact me","Core":"Core","Core style":"Core style","Core styles":"Core styles","Country":"Country","Country of origin":"Country of origin","Cover photo":"Cover photo","Create":"Create","Create collection":"Create collection","Create group":"Create group","Created at":"Created at","Date":"Date","Delete":"Delete","Delete group":"Delete group","Delete<0>, {0}":["Delete<0>, ",["0"],""],"Delivery period":"Delivery period","Delivery period (descending)":"Delivery period (descending)","Description":"Description","Different types of attributes must all get matched. Within the same type any may match.":"Different types of attributes must all get matched. Within the same type any may match.","Disable all":"Disable all","Download":"Download","Download as":"Download as","Downloading...":"Downloading...","E-mail address":"E-mail address","EAN code":"EAN code","Edit":"Edit","Edit collection":"Edit collection","Edit group":"Edit group","Edit user":"Edit user","Edit {0}":["Edit ",["0"]],"Edit<0>, {0}":["Edit<0>, ",["0"],""],"Editor":"Editor","Editors":"Editors","Email address":"Email address","Enable all":"Enable all","Enter new password here to change...":"Enter new password here to change...","Enter your email":"Enter your email","Error":"Error","Excel":"Excel","Existing image":"Existing image","Export":"Export","External ID":"External ID","Features":"Features","Fields":"Fields","Filters<0>, active":"Filters<0>, active","Format":"Format","Go back home":"Go back home","Go to app":"Go to app","Good amount of variants":"Good amount of variants","Gross weight":"Gross weight","Group by":"Group by","Groups":"Groups","Groups are used to give access to collections and price lists to a specific set of users. The price lists and collections that a user has been granted to via one or more groups are added together. Groups cannot take away access to price lists or collections.":"Groups are used to give access to collections and price lists to a specific set of users. The price lists and collections that a user has been granted to via one or more groups are added together. Groups cannot take away access to price lists or collections.","Groups are used to limit user access to collections and price lists.":"Groups are used to limit user access to collections and price lists.","Home":"Home","Image":"Image","Image for {0}":["Image for ",["0"]],"Image for {0} / {1}":["Image for ",["0"]," / ",["1"]],"Image to upload":"Image to upload","Images":"Images","Inactive users":"Inactive users","It is recommended to give the image a 10:7 ratio and a minimum width and height of 1070 by 750 pixels.":"It is recommended to give the image a 10:7 ratio and a minimum width and height of 1070 by 750 pixels.","Items":"Items","JSON":"JSON","Jane Doe":"Jane Doe","Language":"Language","Last sign in":"Last sign in","Last updated":"Last updated","List is empty.":"List is empty.","Loading...":"Loading...","Log in":"Log in","Login":"Login","Logout":"Logout","Make your changes, then hit save when done.":"Make your changes, then hit save when done.","Make your selection of items to add here. Manual adjustments can be made once added.":"Make your selection of items to add here. Manual adjustments can be made once added.","Manage users, associate roles and groups individually.":"Manage users, associate roles and groups individually.","Name":"Name","New":"New","New collection":"New collection","New color":"New color","New date":"New date","New style":"New style","Newest sign in":"Newest sign in","No access":"No access","No collections":"No collections","North America sales reps":"North America sales reps","Notifications":"Notifications","Number":"Number","Number of colors":"Number of colors","Number of sizes":"Number of sizes","Number of styles":"Number of styles","Often useful for ERP system imports.":"Often useful for ERP system imports.","Oldest sign in":"Oldest sign in","One column per attribute type will be generated.":"One column per attribute type will be generated.","Open options":"Open options","Open sidebar":"Open sidebar","Open user menu":"Open user menu","Or continue with":"Or continue with","Page not found.":"Page not found.","Password":"Password","Password (optional)":"Password (optional)","Pinned Collections":"Pinned Collections","Please go to <0>Samling.io for the production environment.":"Please go to <0>Samling.io for the production environment.","Please select a date.":"Please select a date.","Price dates":"Price dates","Price list":"Price list","Price lists":"Price lists","Price lists<0>, active":"Price lists<0>, active","Pricing":"Pricing","Pricing date":"Pricing date","Pricing dates":"Pricing dates","Pricing stuff.":"Pricing stuff.","Primary image":"Primary image","Product":"Product","Product information":"Product information","Provide your e-mail below to hear from our team.":"Provide your e-mail below to hear from our team.","Recent":"Recent","Remember me":"Remember me","Remove filter":"Remove filter","Remove filter for {0}":["Remove filter for ",["0"]],"Remove from pinned":"Remove from pinned","Remove price list":"Remove price list","Remove {0}":["Remove ",["0"]],"Remove<0>, {0}":["Remove<0>, ",["0"],""],"Removed from pinned":"Removed from pinned","Results from current filters":"Results from current filters","Retail price":"Retail price","Retail price amount":"Retail price amount","Retail price currency":"Retail price currency","Retail price list":"Retail price list","Roles":"Roles","Samling.io logotype":"Samling.io logotype","Save":"Save","Saving...":"Saving...","Search":"Search","Service item":"Service item","Service item styles":"Service item styles","Service items":"Service items","ServiceItem styles":"ServiceItem styles","Settings":"Settings","Share":"Share","Sign In":"Sign In","Sign in":"Sign in","Sign in to your account":"Sign in to your account","Sign in with Microsoft":"Sign in with Microsoft","Sign out":"Sign out","Size":"Size","Size level":"Size level","Size number":"Size number","Size type":"Size type","Slug":"Slug","Some collection name...":"Some collection name...","Some external ID value...":"Some external ID value...","Some group description...":"Some group description...","Some group name...":"Some group name...","Some slug value...":"Some slug value...","Sorry, we couldn’t find the page you’re looking for.":"Sorry, we couldn’t find the page you’re looking for.","Sort by":"Sort by","Status":"Status","Style":"Style","Style description":"Style description","Style external id":"Style external id","Style level":"Style level","Style name":"Style name","Style number":"Style number","Styles":"Styles","Styles, colors and sizes to associate with this collection.":"Styles, colors and sizes to associate with this collection.","Success!":"Success!","Successfully signed in":"Successfully signed in","Successfully signed out":"Successfully signed out","Support":"Support","Tariff no":"Tariff no","Technical error prevents login":"Technical error prevents login","The collection \"{0}\" was successfully created.":["The collection \"",["0"],"\" was successfully created."],"The collection \"{0}\" was successfully updated.":["The collection \"",["0"],"\" was successfully updated."],"The given e-mail and password combination does not exist.":"The given e-mail and password combination does not exist.","The group \"{0}\" was successfully updated.":["The group \"",["0"],"\" was successfully updated."],"The groups that this user belong to.":"The groups that this user belong to.","The price lists to add.":"The price lists to add.","The roles that are assigned to this user.":"The roles that are assigned to this user.","The user \"{0}\" was successfully updated.":["The user \"",["0"],"\" was successfully updated."],"The users that belong to this group.":"The users that belong to this group.","There are no collections available to you. Talk an administrator to get access.":"There are no collections available to you. Talk an administrator to get access.","These are all the collections that exist in the system.":"These are all the collections that exist in the system.","These dates decide which item prices should be picked up for each price list. Each item price is associated with a start date and end date, so the date you choose has to fall within those.":"These dates decide which item prices should be picked up for each price list. Each item price is associated with a start date and end date, so the date you choose has to fall within those.","These roles will be assign to the user and determine what they can and cannot do.":"These roles will be assign to the user and determine what they can and cannot do.","These users have access to the system.":"These users have access to the system.","This color first appears in this collection.":"This color first appears in this collection.","This filter is applied at the size level which means that it will affect which colors/sizes are selected for each style.":"This filter is applied at the size level which means that it will affect which colors/sizes are selected for each style.","This is a Core style, meaning that it represents the brand's core values.":"This is a Core style, meaning that it represents the brand's core values.","This is a service item, meaning that it's our intention to never run out of stock with this style.":"This is a service item, meaning that it's our intention to never run out of stock with this style.","This is where you create collections and associate styles, colors and sizes to them.":"This is where you create collections and associate styles, colors and sizes to them.","This style first appears in this collection.":"This style first appears in this collection.","Tick the data types that you want to appear on their own separate line in the exported file.":"Tick the data types that you want to appear on their own separate line in the exported file.","Tired of collecting data from multiple different ERP systems and combining them in your Excel sheets? This Software-as-a-Service is your savior.":"Tired of collecting data from multiple different ERP systems and combining them in your Excel sheets? This Software-as-a-Service is your savior.","Tired of collecting data from multiple different ERP systems and combining them in your Excel sheets? This Software-as-a-Service wants to help you.":"Tired of collecting data from multiple different ERP systems and combining them in your Excel sheets? This Software-as-a-Service wants to help you.","To public page":"To public page","Unauthorized.":"Unauthorized.","Unit price amount":"Unit price amount","Unit price currency":"Unit price currency","Unit price list":"Unit price list","Unit prices":"Unit prices","Unit volume":"Unit volume","Up to {maxSizeMegaBytes} MB.":["Up to ",["maxSizeMegaBytes"]," MB."],"Updated at":"Updated at","Upload an image":"Upload an image","Use groups to specify which collections and price lists users have access to.":"Use groups to specify which collections and price lists users have access to.","Use this form to add a new pricing date group.":"Use this form to add a new pricing date group.","Use this form to create a new user. All users can sign in via a Google or Microsoft account matching the entered e-mail address. Filling in a password is optional.":"Use this form to create a new user. All users can sign in via a Google or Microsoft account matching the entered e-mail address. Filling in a password is optional.","Use this form to export the current selection of items to file.":"Use this form to export the current selection of items to file.","Useful for integration with other systems.":"Useful for integration with other systems.","User":"User","User profile":"User profile","Users":"Users","Uses the newer .xlsx format.":"Uses the newer .xlsx format.","View":"View","View details for {0}":["View details for ",["0"]],"View profile":"View profile","Viewer":"Viewer","Viewers":"Viewers","Which collections users of this group will have access to.":"Which collections users of this group will have access to.","Which fields you want to include in the exported file.":"Which fields you want to include in the exported file.","Which format you want to export to.":"Which format you want to export to.","Which format you want to export to. CSV is often useful for import into ERP system and JSON can be helpful for integration developers.":"Which format you want to export to. CSV is often useful for import into ERP system and JSON can be helpful for integration developers.","Which price lists users of this group will have access to.":"Which price lists users of this group will have access to.","Wrong credentials":"Wrong credentials","You are already signed in as {0} ({1})":["You are already signed in as ",["0"]," (",["1"],")"],"You are now signed in with account {0}.":["You are now signed in with account ",["0"],"."],"You don't have access to any organizations. Please contact an administrator.":"You don't have access to any organizations. Please contact an administrator.","You need to sign in to be able to view this page.":"You need to sign in to be able to view this page.","You were automatically signed out from account {userEmail} because of an expired token. Please sign in again.":["You were automatically signed out from account ",["userEmail"]," because of an expired token. Please sign in again."],"You've signed out from account {userEmail}.":["You've signed out from account ",["userEmail"],"."],"YuXQFHDK2OF8Or":"YuXQFHDK2OF8Or","colors":"colors","jane.doe@example.com":"jane.doe@example.com","or drag and drop.":"or drag and drop.","styles":"styles","user@example.com":"user@example.com","{0, plural, =0 {No styles} one {One style} other {# styles}}":[["0","plural",{0:"No styles",one:"One style",other:["#"," styles"]}]],"{0, plural, one {# collection} other {# collections}}":[["0","plural",{one:["#"," collection"],other:["#"," collections"]}]],"{0, plural, one {# price list} other {# price lists}}":[["0","plural",{one:["#"," price list"],other:["#"," price lists"]}]],"{0, plural, one {# style} other {# styles}}":[["0","plural",{one:["#"," style"],other:["#"," styles"]}]],"{0, plural, one {# user} other {# users}}":[["0","plural",{one:["#"," user"],other:["#"," users"]}]],"{0, plural, one {Disable # style} other {Disable # styles}}":[["0","plural",{one:["Disable ","#"," style"],other:["Disable ","#"," styles"]}]],"{0, plural, one {Enable # style} other {Enable # styles}}":[["0","plural",{one:["Enable ","#"," style"],other:["Enable ","#"," styles"]}]],"{0, plural, one {Has one variant} other {Has # variants}}":[["0","plural",{one:"Has one variant",other:["Has ","#"," variants"]}]],"{0, plural, one {Remove # style} other {Remove # styles}}":[["0","plural",{one:["Remove ","#"," style"],other:["Remove ","#"," styles"]}]],"{0}":[["0"]],"{0} (+{1} more)":[["0"]," (+",["1"]," more)"],"{0} [{1}]":[["0"]," [",["1"],"]"],"{0} filter {1}":[["0"]," filter ",["1"]],"{0} logotype":[["0"]," logotype"],"{0} of {1} fields selected":[["0"]," of ",["1"]," fields selected"],"{0} profile":[["0"]," profile"],"{0}, up to {maxSizeMegaBytes} MB.":[["0"],", up to ",["maxSizeMegaBytes"]," MB."]}}; \ No newline at end of file diff --git a/ui/src/locales/en/messages.po b/ui/src/locales/en/messages.po index 0b8c508..61f9907 100644 --- a/ui/src/locales/en/messages.po +++ b/ui/src/locales/en/messages.po @@ -67,11 +67,11 @@ msgstr "<0>We care about the protection of your data. Read our <1>Privacy Po msgid "Active" msgstr "Active" -#: src/components/admin/UsersTable.tsx:101 +#: src/components/admin/UsersTable.tsx:99 msgid "Active users" msgstr "Active users" -#: src/components/admin/AddCollectionItemsModal.tsx:222 +#: src/components/admin/AddCollectionItemsModal.tsx:228 #: src/components/admin/NewCollectionPricingGroupModal.tsx:114 msgid "Add" msgstr "Add" @@ -80,7 +80,7 @@ msgstr "Add" msgid "Add collection" msgstr "Add collection" -#: src/components/admin/AddCollectionItemsModal.tsx:169 +#: src/components/admin/AddCollectionItemsModal.tsx:158 msgid "Add collection items" msgstr "Add collection items" @@ -94,7 +94,7 @@ msgstr "Add collection pricing date" msgid "Add group" msgstr "Add group" -#: src/pages/app/admin/AdminEditCollection.tsx:634 +#: src/pages/app/admin/AdminEditCollection.tsx:633 msgid "Add items" msgstr "Add items" @@ -106,7 +106,7 @@ msgstr "Add items" #~ msgid "Add pricing" #~ msgstr "Add pricing" -#: src/components/admin/UsersTable.tsx:185 +#: src/components/admin/UsersTable.tsx:183 #: src/pages/app/admin/AdminEditGroup.tsx:379 msgid "Add user" msgstr "Add user" @@ -157,7 +157,7 @@ msgid "Administrators" msgstr "Administrators" #: src/pages/app/admin/AdminCreateCollection.tsx:187 -#: src/pages/app/admin/AdminEditCollection.tsx:322 +#: src/pages/app/admin/AdminEditCollection.tsx:321 msgid "Advanced settings" msgstr "Advanced settings" @@ -194,6 +194,7 @@ msgid "Are you sure you want to delete the user <0>{0}? This action cannot b msgstr "Are you sure you want to delete the user <0>{0}? This action cannot be undone." #: src/components/ExportForm.tsx:145 +#: src/components/admin/AddCollectionItemsModal.tsx:192 msgid "Attributes" msgstr "Attributes" @@ -232,17 +233,17 @@ msgstr "Can sign in." msgid "Can view and export collections where explicit access has been configured in Groups." msgstr "Can view and export collections where explicit access has been configured in Groups." -#: src/components/admin/AddCollectionItemsModal.tsx:229 +#: src/components/admin/AddCollectionItemsModal.tsx:235 #: src/components/admin/ModalBase.tsx:242 #: src/components/admin/NewCollectionPricingGroupModal.tsx:121 #: src/pages/app/admin/AdminCreateCollection.tsx:224 -#: src/pages/app/admin/AdminEditCollection.tsx:361 +#: src/pages/app/admin/AdminEditCollection.tsx:360 #: src/pages/app/admin/AdminEditGroup.tsx:278 #: src/pages/app/admin/AdminEditUser.tsx:214 msgid "Cancel" msgstr "Cancel" -#: src/components/admin/AddCollectionItemsModal.tsx:189 +#: src/components/admin/AddCollectionItemsModal.tsx:178 #: src/components/filters/CategoryFilter.tsx:54 msgid "Categories" msgstr "Categories" @@ -260,7 +261,7 @@ msgstr "Category name" msgid "Choose a color" msgstr "Choose a color" -#: src/pages/app/admin/AdminEditCollection.tsx:679 +#: src/pages/app/admin/AdminEditCollection.tsx:678 msgid "Clear selection" msgstr "Clear selection" @@ -323,7 +324,7 @@ msgstr "Color number" msgid "Colors" msgstr "Colors" -#: src/pages/app/admin/AdminEditCollection.tsx:708 +#: src/pages/app/admin/AdminEditCollection.tsx:707 msgid "Colors / Sizes" msgstr "Colors / Sizes" @@ -390,8 +391,8 @@ msgstr "Created at" #: src/components/admin/DeleteUserModal.tsx:50 #: src/components/admin/GroupsTable.tsx:103 #: src/components/admin/GroupsTable.tsx:166 -#: src/components/admin/UsersTable.tsx:242 -#: src/components/admin/UsersTable.tsx:319 +#: src/components/admin/UsersTable.tsx:240 +#: src/components/admin/UsersTable.tsx:317 msgid "Delete" msgstr "Delete" @@ -418,7 +419,11 @@ msgstr "Delivery period (descending)" msgid "Description" msgstr "Description" -#: src/pages/app/admin/AdminEditCollection.tsx:868 +#: src/components/admin/AddCollectionItemsModal.tsx:193 +msgid "Different types of attributes must all get matched. Within the same type any may match." +msgstr "Different types of attributes must all get matched. Within the same type any may match." + +#: src/pages/app/admin/AdminEditCollection.tsx:871 msgid "Disable all" msgstr "Disable all" @@ -436,7 +441,7 @@ msgid "Downloading..." msgstr "Downloading..." #: src/components/admin/CreateUserModal.tsx:44 -#: src/components/admin/UsersTable.tsx:377 +#: src/components/admin/UsersTable.tsx:375 #: src/pages/app/admin/AdminEditUser.tsx:176 msgid "E-mail address" msgstr "E-mail address" @@ -448,8 +453,8 @@ msgstr "EAN code" #: src/components/admin/CollectionsTable.tsx:101 #: src/components/admin/GroupsTable.tsx:95 #: src/components/admin/GroupsTable.tsx:155 -#: src/components/admin/UsersTable.tsx:234 -#: src/components/admin/UsersTable.tsx:308 +#: src/components/admin/UsersTable.tsx:232 +#: src/components/admin/UsersTable.tsx:306 msgid "Edit" msgstr "Edit" @@ -485,7 +490,7 @@ msgstr "Editors" msgid "Email address" msgstr "Email address" -#: src/pages/app/admin/AdminEditCollection.tsx:868 +#: src/pages/app/admin/AdminEditCollection.tsx:871 msgid "Enable all" msgstr "Enable all" @@ -515,7 +520,7 @@ msgid "Export" msgstr "Export" #: src/pages/app/admin/AdminCreateCollection.tsx:206 -#: src/pages/app/admin/AdminEditCollection.tsx:341 +#: src/pages/app/admin/AdminEditCollection.tsx:340 #: src/pages/app/admin/AdminEditGroup.tsx:219 msgid "External ID" msgstr "External ID" @@ -559,8 +564,8 @@ msgid "Group by" msgstr "Group by" #: src/components/admin/GroupsTable.tsx:35 -#: src/components/admin/UsersTable.tsx:227 -#: src/components/admin/UsersTable.tsx:403 +#: src/components/admin/UsersTable.tsx:225 +#: src/components/admin/UsersTable.tsx:401 #: src/pages/app/admin/AdminEditGroup.tsx:64 #: src/pages/app/admin/AdminEditUser.tsx:381 #: src/pages/app/admin/AdminGroups.tsx:12 @@ -601,7 +606,7 @@ msgstr "Image to upload" msgid "Images" msgstr "Images" -#: src/components/admin/UsersTable.tsx:95 +#: src/components/admin/UsersTable.tsx:93 msgid "Inactive users" msgstr "Inactive users" @@ -610,7 +615,7 @@ msgstr "Inactive users" msgid "It is recommended to give the image a 10:7 ratio and a minimum width and height of 1070 by 750 pixels." msgstr "It is recommended to give the image a 10:7 ratio and a minimum width and height of 1070 by 750 pixels." -#: src/pages/app/admin/AdminEditCollection.tsx:620 +#: src/pages/app/admin/AdminEditCollection.tsx:619 msgid "Items" msgstr "Items" @@ -628,7 +633,7 @@ msgstr "Jane Doe" msgid "Language" msgstr "Language" -#: src/components/admin/UsersTable.tsx:215 +#: src/components/admin/UsersTable.tsx:213 #: src/pages/app/admin/AdminEditGroup.tsx:360 msgid "Last sign in" msgstr "Last sign in" @@ -668,7 +673,7 @@ msgstr "Login" msgid "Make your changes, then hit save when done." msgstr "Make your changes, then hit save when done." -#: src/components/admin/AddCollectionItemsModal.tsx:172 +#: src/components/admin/AddCollectionItemsModal.tsx:161 #: src/components/admin/NewCollectionPricingGroupModal.tsx:81 msgid "Make your selection of items to add here. Manual adjustments can be made once added." msgstr "Make your selection of items to add here. Manual adjustments can be made once added." @@ -680,7 +685,7 @@ msgstr "Manage users, associate roles and groups individually." #: src/components/admin/CreateGroupModal.tsx:27 #: src/components/admin/CreateUserModal.tsx:34 #: src/components/admin/GroupsTable.tsx:70 -#: src/components/admin/UsersTable.tsx:376 +#: src/components/admin/UsersTable.tsx:374 #: src/pages/app/admin/AdminCreateCollection.tsx:166 #: src/pages/app/admin/AdminEditCollection.tsx:279 #: src/pages/app/admin/AdminEditGroup.tsx:186 @@ -698,8 +703,8 @@ msgstr "Name" #: src/components/filters/ActiveFilters.tsx:81 #: src/components/filters/NewFilter.tsx:45 #: src/pages/app/admin/AdminCreateCollection.tsx:39 -#: src/pages/app/admin/AdminEditCollection.tsx:796 -#: src/pages/app/admin/AdminEditCollection.tsx:878 +#: src/pages/app/admin/AdminEditCollection.tsx:797 +#: src/pages/app/admin/AdminEditCollection.tsx:883 msgid "New" msgstr "New" @@ -713,7 +718,7 @@ msgstr "New collection" msgid "New color" msgstr "New color" -#: src/pages/app/admin/AdminEditCollection.tsx:464 +#: src/pages/app/admin/AdminEditCollection.tsx:463 msgid "New date" msgstr "New date" @@ -722,7 +727,7 @@ msgstr "New date" msgid "New style" msgstr "New style" -#: src/components/admin/UsersTable.tsx:378 +#: src/components/admin/UsersTable.tsx:376 msgid "Newest sign in" msgstr "Newest sign in" @@ -746,15 +751,15 @@ msgstr "Notifications" msgid "Number" msgstr "Number" -#: src/components/admin/AddCollectionItemsModal.tsx:254 +#: src/components/admin/AddCollectionItemsModal.tsx:260 msgid "Number of colors" msgstr "Number of colors" -#: src/components/admin/AddCollectionItemsModal.tsx:255 +#: src/components/admin/AddCollectionItemsModal.tsx:261 msgid "Number of sizes" msgstr "Number of sizes" -#: src/components/admin/AddCollectionItemsModal.tsx:253 +#: src/components/admin/AddCollectionItemsModal.tsx:259 msgid "Number of styles" msgstr "Number of styles" @@ -762,7 +767,7 @@ msgstr "Number of styles" msgid "Often useful for ERP system imports." msgstr "Often useful for ERP system imports." -#: src/components/admin/UsersTable.tsx:379 +#: src/components/admin/UsersTable.tsx:377 msgid "Oldest sign in" msgstr "Oldest sign in" @@ -839,7 +844,7 @@ msgstr "Pricing" msgid "Pricing date" msgstr "Pricing date" -#: src/pages/app/admin/AdminEditCollection.tsx:430 +#: src/pages/app/admin/AdminEditCollection.tsx:429 msgid "Pricing dates" msgstr "Pricing dates" @@ -871,7 +876,7 @@ msgstr "Provide your e-mail below to hear from our team." msgid "Remember me" msgstr "Remember me" -#: src/components/admin/MultipleCombobox.tsx:136 +#: src/components/admin/MultipleCombobox.tsx:153 msgid "Remove filter" msgstr "Remove filter" @@ -902,7 +907,7 @@ msgstr "Remove<0>, {0}" #~ msgid "Removed from pinned" #~ msgstr "Removed from pinned" -#: src/components/admin/AddCollectionItemsModal.tsx:260 +#: src/components/admin/AddCollectionItemsModal.tsx:266 msgid "Results from current filters" msgstr "Results from current filters" @@ -923,8 +928,8 @@ msgid "Retail price list" msgstr "Retail price list" #: src/components/admin/CreateUserModal.tsx:64 -#: src/components/admin/UsersTable.tsx:221 -#: src/components/admin/UsersTable.tsx:385 +#: src/components/admin/UsersTable.tsx:219 +#: src/components/admin/UsersTable.tsx:383 #: src/pages/app/admin/AdminEditUser.tsx:257 msgid "Roles" msgstr "Roles" @@ -935,14 +940,14 @@ msgid "Samling.io logotype" msgstr "Samling.io logotype" #: src/pages/app/admin/AdminCreateCollection.tsx:239 -#: src/pages/app/admin/AdminEditCollection.tsx:376 +#: src/pages/app/admin/AdminEditCollection.tsx:375 #: src/pages/app/admin/AdminEditGroup.tsx:284 #: src/pages/app/admin/AdminEditUser.tsx:220 msgid "Save" msgstr "Save" #: src/pages/app/admin/AdminCreateCollection.tsx:239 -#: src/pages/app/admin/AdminEditCollection.tsx:376 +#: src/pages/app/admin/AdminEditCollection.tsx:375 msgid "Saving..." msgstr "Saving..." @@ -1021,7 +1026,7 @@ msgid "Size type" msgstr "Size type" #: src/pages/app/admin/AdminCreateCollection.tsx:196 -#: src/pages/app/admin/AdminEditCollection.tsx:331 +#: src/pages/app/admin/AdminEditCollection.tsx:330 #: src/pages/app/admin/AdminEditGroup.tsx:208 msgid "Slug" msgstr "Slug" @@ -1031,7 +1036,7 @@ msgstr "Slug" #~ msgstr "Some collection name..." #: src/pages/app/admin/AdminCreateCollection.tsx:205 -#: src/pages/app/admin/AdminEditCollection.tsx:340 +#: src/pages/app/admin/AdminEditCollection.tsx:339 #: src/pages/app/admin/AdminEditGroup.tsx:218 msgid "Some external ID value..." msgstr "Some external ID value..." @@ -1045,7 +1050,7 @@ msgid "Some group name..." msgstr "Some group name..." #: src/pages/app/admin/AdminCreateCollection.tsx:195 -#: src/pages/app/admin/AdminEditCollection.tsx:330 +#: src/pages/app/admin/AdminEditCollection.tsx:329 #: src/pages/app/admin/AdminEditGroup.tsx:207 msgid "Some slug value..." msgstr "Some slug value..." @@ -1059,16 +1064,16 @@ msgstr "Sorry, we couldn’t find the page you’re looking for." msgid "Sort by" msgstr "Sort by" -#: src/components/admin/AddCollectionItemsModal.tsx:177 +#: src/components/admin/AddCollectionItemsModal.tsx:166 #: src/pages/app/admin/AdminEditGroup.tsx:354 msgid "Status" msgstr "Status" #: src/components/ExportForm.tsx:68 -#: src/components/admin/AddCollectionItemsModal.tsx:201 +#: src/components/admin/AddCollectionItemsModal.tsx:208 #: src/components/filters/ActiveFilters.tsx:40 #: src/components/filters/ActiveFilters.tsx:49 -#: src/pages/app/admin/AdminEditCollection.tsx:702 +#: src/pages/app/admin/AdminEditCollection.tsx:701 #: src/types/columns.ts:34 msgid "Style" msgstr "Style" @@ -1099,7 +1104,7 @@ msgstr "Style number" msgid "Styles" msgstr "Styles" -#: src/pages/app/admin/AdminEditCollection.tsx:623 +#: src/pages/app/admin/AdminEditCollection.tsx:622 msgid "Styles, colors and sizes to associate with this collection." msgstr "Styles, colors and sizes to associate with this collection." @@ -1177,7 +1182,7 @@ msgstr "There are no collections available to you. Talk an administrator to get msgid "These are all the collections that exist in the system." msgstr "These are all the collections that exist in the system." -#: src/pages/app/admin/AdminEditCollection.tsx:433 +#: src/pages/app/admin/AdminEditCollection.tsx:432 msgid "These dates decide which item prices should be picked up for each price list. Each item price is associated with a start date and end date, so the date you choose has to fall within those." msgstr "These dates decide which item prices should be picked up for each price list. Each item price is associated with a start date and end date, so the date you choose has to fall within those." @@ -1185,7 +1190,7 @@ msgstr "These dates decide which item prices should be picked up for each price msgid "These roles will be assign to the user and determine what they can and cannot do." msgstr "These roles will be assign to the user and determine what they can and cannot do." -#: src/components/admin/UsersTable.tsx:146 +#: src/components/admin/UsersTable.tsx:144 msgid "These users have access to the system." msgstr "These users have access to the system." @@ -1193,6 +1198,10 @@ msgstr "These users have access to the system." msgid "This color first appears in this collection." msgstr "This color first appears in this collection." +#: src/components/admin/AddCollectionItemsModal.tsx:167 +msgid "This filter is applied at the size level which means that it will affect which colors/sizes are selected for each style." +msgstr "This filter is applied at the size level which means that it will affect which colors/sizes are selected for each style." + #: src/components/columns/data/Style.tsx:115 msgid "This is a Core style, meaning that it represents the brand's core values." msgstr "This is a Core style, meaning that it represents the brand's core values." @@ -1281,7 +1290,7 @@ msgstr "Use this form to export the current selection of items to file." msgid "Useful for integration with other systems." msgstr "Useful for integration with other systems." -#: src/components/admin/UsersTable.tsx:209 +#: src/components/admin/UsersTable.tsx:207 msgid "User" msgstr "User" @@ -1291,7 +1300,7 @@ msgid "User profile" msgstr "User profile" #: src/components/admin/GroupsTable.tsx:76 -#: src/components/admin/UsersTable.tsx:143 +#: src/components/admin/UsersTable.tsx:141 #: src/pages/app/admin/AdminEditGroup.tsx:330 #: src/pages/app/admin/AdminEditUser.tsx:56 #: src/pages/app/admin/AdminHome.tsx:25 @@ -1419,11 +1428,11 @@ msgstr "{0, plural, one {# style} other {# styles}}" msgid "{0, plural, one {# user} other {# users}}" msgstr "{0, plural, one {# user} other {# users}}" -#: src/pages/app/admin/AdminEditCollection.tsx:652 +#: src/pages/app/admin/AdminEditCollection.tsx:651 msgid "{0, plural, one {Disable # style} other {Disable # styles}}" msgstr "{0, plural, one {Disable # style} other {Disable # styles}}" -#: src/pages/app/admin/AdminEditCollection.tsx:666 +#: src/pages/app/admin/AdminEditCollection.tsx:665 msgid "{0, plural, one {Enable # style} other {Enable # styles}}" msgstr "{0, plural, one {Enable # style} other {Enable # styles}}" @@ -1703,7 +1712,7 @@ msgstr "{0} logotype" msgid "{0} of {1} fields selected" msgstr "{0} of {1} fields selected" -#: src/components/admin/UsersTable.tsx:257 +#: src/components/admin/UsersTable.tsx:255 msgid "{0} profile" msgstr "{0} profile" diff --git a/ui/src/locales/sv/messages.js b/ui/src/locales/sv/messages.js index 64e2eb0..f18ff9d 100644 --- a/ui/src/locales/sv/messages.js +++ b/ui/src/locales/sv/messages.js @@ -1 +1 @@ -/*eslint-disable*/module.exports={messages:{"# collections":"# samlingar","# colors":"# färger","# price lists":"# prislistor","# sizes":"# storlekar","# styles":"# stilar","401 Error":"401-fel","404 Error":"404-fel","<0>Get full insight into<1>your product data.":"<0>Få full insikt i<1>din produktdata.","<0>We care about the protection of your data. Read our <1>Privacy Policy.":"<0>Vi bryr oss om att skydda dina uppgifter. Läs vår <1>integritetspolicy.","Active":"Aktiv","Active users":"Aktiva användare","Add":"Lägg till","Add collection":"Lägg till samling","Add collection items":"Lägg till artiklar","Add collection pricing date":"Lägg till prisdatum för samlingen","Add group":"Lägg till grupp","Add items":"Lägg till artiklar","Add user":"Lägg till användare","Additional details":"Ytterligare information","Admin":"Admin","Administrate collections":"Administrera samlingar","Administrate groups":"Administrera grupper","Administrate users":"Administrera användare","Administrator":"Administratör","Administrators":"Administratörer","Advanced settings":"Avancerade inställningar","Already signed in":"Redan inloggad","Already signed in.":"Redan inloggad.","An error occurred":"Ett fel uppstod","An error occurred.":"Ett fel uppstod.","Are you sure you want to delete the collection <0>{0}? This action cannot be undone.":["Är du säker på att du vill ta bort samlingen <0>",["0"],"? Den här åtgärden kan inte ångras."],"Are you sure you want to delete the group <0>{0}? This action cannot be undone.":["Är du säker på att du vill ta bort gruppen <0>",["0"],"? Den här åtgärden kan inte ångras."],"Are you sure you want to delete the user <0>{0}? This action cannot be undone.":["Är du säker på att du vill ta bort användaren <0>",["0"],"? Den här åtgärden kan inte ångras."],"Attributes":"Attribut","Automatic sign out":"Automatisk utloggning","Backend error":"Backend-fel","Basic settings":"Grundläggande inställningar","CSV":"CSV","Can create and edit groups and collections, in addition to viewer level access.":"Kan skapa och redigera grupper och samlingar, i tillägg till åtkomst på visningsnivå.","Can manage users, in addition to editor level access. Also gets full API access, which is useful when creating integrations.":"Kan hantera användare, i tillägg till åtkomst på redigeringsnivå. Får också fullständig API-åtkomst, vilket är användbart när man skapar integrationer.","Can sign in.":"Kan logga in.","Can view and export collections where explicit access has been configured in Groups.":"Kan visa och exportera samlingar där explicit åtkomst har konfigurerats i Grupper.","Cancel":"Avbryt","Categories":"Kategorier","Category":"Kategori","Category name":"Kategorinamn","Choose a color":"Välj en färg","Clear selection":"Rensa urvalet","Close":"Stäng","Close sidebar":"Stäng sidofältet","Collection":"Samling","Collections":"Samlingar","Color":"Färg","Color external id":"Externt färg-id","Color name":"Färgnamn","Color number":"Färgnummer","Colors":"Färger","Colors / Sizes":"Färger / storlekar","Company":"Företag","Contact me":"Kontakta mig","Core":"Core","Core style":"Core-stil","Core styles":"Core-stilar","Country":"Land","Country of origin":"Ursprungsland","Cover photo":"Omslagsbild","Create":"Skapa","Create collection":"Skapa samling","Created at":"Skapad","Delete":"Ta bort","Delete<0>, {0}":["Ta bort<0>, ",["0"],""],"Delivery period":"Leveransperiod","Delivery period (descending)":"Leveransperiod (fallande)","Description":"Beskrivning","Disable all":"Inaktivera alla","Download":"Ladda ner","Downloading...":"Laddar ner...","E-mail address":"E-postadress","EAN code":"EAN-kod","Edit":"Redigera","Edit group":"Redigera grupp","Edit {0}":["Redigera ",["0"]],"Edit<0>, {0}":["Redigera<0>, ",["0"],""],"Editor":"Redigerare","Editors":"Redigerare","Email address":"E-postadress","Enable all":"Aktivera alla","Enter new password here to change...":"Ange nytt lösenord här för att ändra...","Enter your email":"Ange din e-postadress","Error":"Fel","Excel":"Excel","Existing image":"Befintlig bild","Export":"Exportera","External ID":"Externt ID","Features":"Funktioner","Fields":"Fält","Filters<0>, active":"Filter<0>, aktiva","Format":"Format","Go back home":"Gå tillbaka till start","Go to app":"Gå till app","Gross weight":"Bruttovikt","Group by":"Gruppera på","Groups":"Grupper","Groups are used to give access to collections and price lists to a specific set of users. The price lists and collections that a user has been granted to via one or more groups are added together. Groups cannot take away access to price lists or collections.":"Grupper används för att ge åtkomst till samlingar och prislistor till en specifik uppsättning användare. De prislistor och samlingar som en användare har beviljats via en eller flera grupper läggs samman. Grupper kan inte ta bort åtkomsten till prislistor eller samlingar.","Groups are used to limit user access to collections and price lists.":"Grupper används för att begränsa användarnas åtkomst till samlingar och prislistor.","Image":"Bild","Image for {0}":["Bild för ",["0"]],"Image for {0} / {1}":["Bild för ",["0"]," / ",["1"]],"Image to upload":"Bild att ladda upp","Images":"Bilder","Inactive users":"Inaktiva användare","It is recommended to give the image a 10:7 ratio and a minimum width and height of 1070 by 750 pixels.":"Det rekommenderas att ge bilden ett bildförhållande kring 10:7 och en minsta bredd och höjd på 1070 x 750 pixlar.","Items":"Artiklar","JSON":"JSON","Jane Doe":"Lena Svensson","Language":"Språk","Last sign in":"Senaste inloggning","List is empty.":"Listan är tom.","Loading...":"Laddar...","Log in":"Logga in","Login":"Logga in","Make your changes, then hit save when done.":"Gör dina ändringar och tryck sedan på spara när du är klar.","Make your selection of items to add here. Manual adjustments can be made once added.":"Gör ditt val av artiklar att lägga till här. Manuella justeringar kan göras när de har lagts till.","Manage users, associate roles and groups individually.":"Hantera användare, associera roller och grupper individuellt.","Name":"Namn","New":"Ny","New collection":"Ny samling","New color":"Ny färg","New date":"Nytt datum","New style":"Ny stil","Newest sign in":"Senaste inloggning","No access":"Ingen åtkomst","No collections":"Inga samlingar","North America sales reps":"Nordamerikanska säljare","Notifications":"Aviseringar","Number":"Nummer","Number of colors":"Antal färger","Number of sizes":"Antal storlekar","Number of styles":"Antal stilar","Often useful for ERP system imports.":"Användbart vid import till ERP-system.","Oldest sign in":"Äldsta inloggningen","One column per attribute type will be generated.":"En kolumn per attributtyp genereras.","Open options":"Öppna alternativ","Open sidebar":"Öppna sidofältet","Open user menu":"Öppna användarmenyn","Page not found.":"Sidan kunde inte hittas.","Password":"Lösenord","Password (optional)":"Lösenord (valfritt)","Pinned Collections":"Fästa samlingar","Please go to <0>Samling.io for the production environment.":"Gå till <0>Samling.io för produktionsmiljön.","Please select a date.":"Välj ett datum.","Price list":"Prislista","Price lists":"Prislistor","Price lists<0>, active":"Prislistor<0>, aktiva","Pricing":"Priser","Pricing date":"Prisdatum","Pricing dates":"Datum för priser","Primary image":"Primär bild","Product":"Produkt","Product information":"Produktinformation","Provide your e-mail below to hear from our team.":"Ange din e-postadress nedan för att höra från vårt team.","Remember me":"Kom ihåg mig","Remove filter":"Ta bort filter","Remove filter for {0}":["Ta bort filter för ",["0"]],"Remove from pinned":"Ta bort fästmarkering","Remove {0}":["Ta bort ",["0"]],"Remove<0>, {0}":["Ta bort<0>, ",["0"],""],"Results from current filters":"Resultat från aktuella filter","Retail price":"Rek.pris","Retail price amount":"Rek.prisbelopp","Retail price currency":"Rek.prisvaluta","Retail price list":"Rek.prislista","Roles":"Roller","Samling.io logotype":"Samling.io logotyp","Save":"Spara","Saving...":"Sparar...","Search":"Sök","Service item":"Serviceartikel","Service items":"Serviceartiklar","Settings":"Inställningar","Share":"Dela","Sign in":"Logga in","Sign in to your account":"Logga in på ditt konto","Sign in with Microsoft":"Logga in med Microsoft","Sign out":"Logga ut","Size":"Storlek","Size number":"Storleksnummer","Size type":"Storlekstyp","Slug":"Slug","Some external ID value...":"Något externt ID-värde...","Some group description...":"Någon gruppbeskrivning...","Some group name...":"Något gruppnamn...","Some slug value...":"Något slug-värde...","Sorry, we couldn’t find the page you’re looking for.":"Tyvärr kunde vi inte hitta sidan du letar efter.","Sort by":"Sortera efter","Status":"Status","Style":"Stil","Style description":"Stilbeskrivning","Style external id":"Externt ID för stilen","Style name":"Stilnamn","Style number":"Stilnummer","Styles":"Stilar","Styles, colors and sizes to associate with this collection.":"Stilar, färger och storlekar att associera med denna samling.","Success!":"Framgång!","Successfully signed in":"Framgångsrik inloggning","Successfully signed out":"Framgångsrik utloggning","Support":"Support","Tariff no":"Tariffnr","Technical error prevents login":"Tekniskt fel förhindrar inloggning","The collection \"{0}\" was successfully created.":["Samlingen \"",["0"],"\" skapades framgångsrikt."],"The collection \"{0}\" was successfully updated.":["Samlingen \"",["0"],"\" uppdaterades framgångsrikt."],"The given e-mail and password combination does not exist.":"Den angivna kombinationen av e-post och lösenord finns inte.","The group \"{0}\" was successfully updated.":["Gruppen \"",["0"],"\" uppdaterades framgångsrikt."],"The groups that this user belong to.":"De grupper som den här användaren tillhör.","The roles that are assigned to this user.":"De roller som tilldelas den här användaren.","The user \"{0}\" was successfully updated.":["Användaren \"",["0"],"\" uppdaterades."],"The users that belong to this group.":"De användare som tillhör den här gruppen.","There are no collections available to you. Talk an administrator to get access.":"Det finns inga samlingar tillgängliga för dig. Prata med en administratör för att få åtkomst.","These are all the collections that exist in the system.":"Det här är alla samlingar som finns i systemet.","These dates decide which item prices should be picked up for each price list. Each item price is associated with a start date and end date, so the date you choose has to fall within those.":"Dessa datum avgör vilka artikelpriser som ska hämtas för varje prislista. Varje artikelpris är kopplat till ett startdatum och slutdatum, så det datum du väljer måste falla inom dessa.","These roles will be assign to the user and determine what they can and cannot do.":"Dessa roller tilldelas användaren och avgör vad de kan och inte kan göra.","These users have access to the system.":"Dessa användare har tillgång till systemet.","This color first appears in this collection.":"Den här färgen introducerades i den här samlingen.","This is a Core style, meaning that it represents the brand's core values.":"Detta är en Core-stil, vilket innebär att den representerar varumärkets kärnvärden.","This is a service item, meaning that it's our intention to never run out of stock with this style.":"Detta är en serviceartikel, vilket innebär att det är vår avsikt att alltid ha den på lager.","This is where you create collections and associate styles, colors and sizes to them.":"Det är här du skapar samlingar och associerar stilar, färger och storlekar till dem.","This style first appears in this collection.":"Den här stilen introducerades i den här samlingen.","Tick the data types that you want to appear on their own separate line in the exported file.":"Markera de datatyper som du vill ska visas på en egen separat rad i den exporterade filen.","Tired of collecting data from multiple different ERP systems and combining them in your Excel sheets? This Software-as-a-Service wants to help you.":"Trött på att samla in data från flera olika ERP-system och kombinera dem i dina Excel-ark? Den här SaaS-lösningen vill hjälpa dig.","To public page":"Till offentlig sida","Unauthorized.":"Obehörig.","Unit price amount":"Enhetsprisbelopp","Unit price currency":"Enhetsprisvaluta","Unit price list":"Enhetsprislista","Unit prices":"Enhetspriser","Unit volume":"Enhetsvolym","Up to {maxSizeMegaBytes} MB.":["Upp till ",["maxSizeMegaBytes"]," MB."],"Updated at":"Uppdaterad den","Upload an image":"Ladda upp en bild","Use groups to specify which collections and price lists users have access to.":"Använd grupper för att ange vilka samlingar och prislistor användarna har åtkomst till.","Use this form to create a new user. All users can sign in via a Google or Microsoft account matching the entered e-mail address. Filling in a password is optional.":"Använd det här formuläret för att skapa en ny användare. Alla användare kan logga in via ett Google- eller Microsoft-konto som matchar den angivna e-postadressen. Att fylla i ett lösenord är valfritt.","Use this form to export the current selection of items to file.":"Använd det här formuläret för att exportera det aktuella artikelurvalet till en fil.","Useful for integration with other systems.":"Användbar för integration med andra system.","User":"Användare","User profile":"Användarprofil","Users":"Användare","Uses the newer .xlsx format.":"Använder det nyare .xlsx-formatet.","View":"Visa","View details for {0}":["Visa information för ",["0"]],"View profile":"Visa profil","Viewer":"Användare","Viewers":"Användare","Which collections users of this group will have access to.":"Vilka samlingar användare av den här gruppen kommer att ha åtkomst till.","Which fields you want to include in the exported file.":"Vilka fält du vill inkludera i den exporterade filen.","Which format you want to export to.":"Vilket format du vill exportera till.","Which price lists users of this group will have access to.":"Vilka prislistor användare i den här gruppen kommer att ha tillgång till.","Wrong credentials":"Felaktiga inloggningsuppgifter","You are already signed in as {0} ({1})":["Du är redan inloggad som ",["0"]," (",["1"],")"],"You are now signed in with account {0}.":["Du är nu inloggad med konto ",["0"],"."],"You don't have access to any organizations. Please contact an administrator.":"Du har inte åtkomst till några organisationer. Kontakta en administratör.","You need to sign in to be able to view this page.":"Du måste logga in för att kunna visa den här sidan.","You were automatically signed out from account {userEmail} because of an expired token. Please sign in again.":["Du loggades automatiskt ut från konto ",["userEmail"]," på grund av en token som har upphört att gälla. Logga in igen."],"You've signed out from account {userEmail}.":["Du har loggat ut från konto ",["userEmail"],"."],"colors":"färger","jane.doe@example.com":"lena.svensson@exampel.se","or drag and drop.":"eller dra och släpp.","styles":"stilar","user@example.com":"användare@exempel.se","{0, plural, one {# collection} other {# collections}}":[["0","plural",{one:["#"," samling"],other:["#"," samlingar"]}]],"{0, plural, one {# price list} other {# price lists}}":[["0","plural",{one:["#"," prislista"],other:["#"," prislistor"]}]],"{0, plural, one {# style} other {# styles}}":[["0","plural",{one:["#"," stil"],other:["#"," stilar"]}]],"{0, plural, one {# user} other {# users}}":[["0","plural",{one:["#"," användare"],other:["#"," användare"]}]],"{0, plural, one {Disable # style} other {Disable # styles}}":[["0","plural",{one:["Inaktivera ","#"," stil"],other:["Inaktivera ","#"," stilar"]}]],"{0, plural, one {Enable # style} other {Enable # styles}}":[["0","plural",{one:["Aktivera ","#"," stil"],other:["Aktivera ","#"," stilar"]}]],"{0} (+{1} more)":[["0"]," (+",["1"]," till)"],"{0} filter {1}":[["0"]," filter ",["1"]],"{0} logotype":[["0"]," logotyp"],"{0} of {1} fields selected":[["0"]," av ",["1"]," fält valda"],"{0} profile":[["0"]," profil"],"{0}, up to {maxSizeMegaBytes} MB.":[["0"],", upp till ",["maxSizeMegaBytes"]," MB."],"Add price list":"Lägg till prislista","Date":"Datum","Remove price list":"Ta bort prislista","The price lists to add.":"Prislistorna att lägga till.","Use this form to add a new pricing date group.":"Använd det här formuläret för att lägga till en ny prisdatumgrupp."}}; \ No newline at end of file +/*eslint-disable*/module.exports={messages:{"# collections":"# samlingar","# colors":"# färger","# price lists":"# prislistor","# sizes":"# storlekar","# styles":"# stilar","401 Error":"401-fel","404 Error":"404-fel","<0>Get full insight into<1>your product data.":"<0>Få full insikt i<1>din produktdata.","<0>We care about the protection of your data. Read our <1>Privacy Policy.":"<0>Vi bryr oss om att skydda dina uppgifter. Läs vår <1>integritetspolicy.","Active":"Aktiv","Active users":"Aktiva användare","Add":"Lägg till","Add collection":"Lägg till samling","Add collection items":"Lägg till artiklar","Add collection pricing date":"Lägg till prisdatum för samlingen","Add group":"Lägg till grupp","Add items":"Lägg till artiklar","Add user":"Lägg till användare","Additional details":"Ytterligare information","Admin":"Admin","Administrate collections":"Administrera samlingar","Administrate groups":"Administrera grupper","Administrate users":"Administrera användare","Administrator":"Administratör","Administrators":"Administratörer","Advanced settings":"Avancerade inställningar","Already signed in":"Redan inloggad","Already signed in.":"Redan inloggad.","An error occurred":"Ett fel uppstod","An error occurred.":"Ett fel uppstod.","Are you sure you want to delete the collection <0>{0}? This action cannot be undone.":["Är du säker på att du vill ta bort samlingen <0>",["0"],"? Den här åtgärden kan inte ångras."],"Are you sure you want to delete the group <0>{0}? This action cannot be undone.":["Är du säker på att du vill ta bort gruppen <0>",["0"],"? Den här åtgärden kan inte ångras."],"Are you sure you want to delete the user <0>{0}? This action cannot be undone.":["Är du säker på att du vill ta bort användaren <0>",["0"],"? Den här åtgärden kan inte ångras."],"Attributes":"Attribut","Automatic sign out":"Automatisk utloggning","Backend error":"Backend-fel","Basic settings":"Grundläggande inställningar","CSV":"CSV","Can create and edit groups and collections, in addition to viewer level access.":"Kan skapa och redigera grupper och samlingar, i tillägg till åtkomst på visningsnivå.","Can manage users, in addition to editor level access. Also gets full API access, which is useful when creating integrations.":"Kan hantera användare, i tillägg till åtkomst på redigeringsnivå. Får också fullständig API-åtkomst, vilket är användbart när man skapar integrationer.","Can sign in.":"Kan logga in.","Can view and export collections where explicit access has been configured in Groups.":"Kan visa och exportera samlingar där explicit åtkomst har konfigurerats i Grupper.","Cancel":"Avbryt","Categories":"Kategorier","Category":"Kategori","Category name":"Kategorinamn","Choose a color":"Välj en färg","Clear selection":"Rensa urvalet","Close":"Stäng","Close sidebar":"Stäng sidofältet","Collection":"Samling","Collections":"Samlingar","Color":"Färg","Color external id":"Externt färg-id","Color name":"Färgnamn","Color number":"Färgnummer","Colors":"Färger","Colors / Sizes":"Färger / storlekar","Company":"Företag","Contact me":"Kontakta mig","Core":"Core","Core style":"Core-stil","Core styles":"Core-stilar","Country":"Land","Country of origin":"Ursprungsland","Cover photo":"Omslagsbild","Create":"Skapa","Create collection":"Skapa samling","Created at":"Skapad","Delete":"Ta bort","Delete<0>, {0}":["Ta bort<0>, ",["0"],""],"Delivery period":"Leveransperiod","Delivery period (descending)":"Leveransperiod (fallande)","Description":"Beskrivning","Different types of attributes must all get matched. Within the same type any may match.":"Olika typer av attribut måste alla matcha. Inom samma typ räcker det att en matchar.","Disable all":"Inaktivera alla","Download":"Ladda ner","Downloading...":"Laddar ner...","E-mail address":"E-postadress","EAN code":"EAN-kod","Edit":"Redigera","Edit group":"Redigera grupp","Edit {0}":["Redigera ",["0"]],"Edit<0>, {0}":["Redigera<0>, ",["0"],""],"Editor":"Redigerare","Editors":"Redigerare","Email address":"E-postadress","Enable all":"Aktivera alla","Enter new password here to change...":"Ange nytt lösenord här för att ändra...","Enter your email":"Ange din e-postadress","Error":"Fel","Excel":"Excel","Existing image":"Befintlig bild","Export":"Exportera","External ID":"Externt ID","Features":"Funktioner","Fields":"Fält","Filters<0>, active":"Filter<0>, aktiva","Format":"Format","Go back home":"Gå tillbaka till start","Go to app":"Gå till app","Gross weight":"Bruttovikt","Group by":"Gruppera på","Groups":"Grupper","Groups are used to give access to collections and price lists to a specific set of users. The price lists and collections that a user has been granted to via one or more groups are added together. Groups cannot take away access to price lists or collections.":"Grupper används för att ge åtkomst till samlingar och prislistor till en specifik uppsättning användare. De prislistor och samlingar som en användare har beviljats via en eller flera grupper läggs samman. Grupper kan inte ta bort åtkomsten till prislistor eller samlingar.","Groups are used to limit user access to collections and price lists.":"Grupper används för att begränsa användarnas åtkomst till samlingar och prislistor.","Image":"Bild","Image for {0}":["Bild för ",["0"]],"Image for {0} / {1}":["Bild för ",["0"]," / ",["1"]],"Image to upload":"Bild att ladda upp","Images":"Bilder","Inactive users":"Inaktiva användare","It is recommended to give the image a 10:7 ratio and a minimum width and height of 1070 by 750 pixels.":"Det rekommenderas att ge bilden ett bildförhållande kring 10:7 och en minsta bredd och höjd på 1070 x 750 pixlar.","Items":"Artiklar","JSON":"JSON","Jane Doe":"Lena Svensson","Language":"Språk","Last sign in":"Senaste inloggning","List is empty.":"Listan är tom.","Loading...":"Laddar...","Log in":"Logga in","Login":"Logga in","Make your changes, then hit save when done.":"Gör dina ändringar och tryck sedan på spara när du är klar.","Make your selection of items to add here. Manual adjustments can be made once added.":"Gör ditt val av artiklar att lägga till här. Manuella justeringar kan göras när de har lagts till.","Manage users, associate roles and groups individually.":"Hantera användare, associera roller och grupper individuellt.","Name":"Namn","New":"Ny","New collection":"Ny samling","New color":"Ny färg","New date":"Nytt datum","New style":"Ny stil","Newest sign in":"Senaste inloggning","No access":"Ingen åtkomst","No collections":"Inga samlingar","North America sales reps":"Nordamerikanska säljare","Notifications":"Aviseringar","Number":"Nummer","Number of colors":"Antal färger","Number of sizes":"Antal storlekar","Number of styles":"Antal stilar","Often useful for ERP system imports.":"Användbart vid import till ERP-system.","Oldest sign in":"Äldsta inloggningen","One column per attribute type will be generated.":"En kolumn per attributtyp genereras.","Open options":"Öppna alternativ","Open sidebar":"Öppna sidofältet","Open user menu":"Öppna användarmenyn","Page not found.":"Sidan kunde inte hittas.","Password":"Lösenord","Password (optional)":"Lösenord (valfritt)","Pinned Collections":"Fästa samlingar","Please go to <0>Samling.io for the production environment.":"Gå till <0>Samling.io för produktionsmiljön.","Please select a date.":"Välj ett datum.","Price list":"Prislista","Price lists":"Prislistor","Price lists<0>, active":"Prislistor<0>, aktiva","Pricing":"Priser","Pricing date":"Prisdatum","Pricing dates":"Datum för priser","Primary image":"Primär bild","Product":"Produkt","Product information":"Produktinformation","Provide your e-mail below to hear from our team.":"Ange din e-postadress nedan för att höra från vårt team.","Remember me":"Kom ihåg mig","Remove filter":"Ta bort filter","Remove filter for {0}":["Ta bort filter för ",["0"]],"Remove from pinned":"Ta bort fästmarkering","Remove {0}":["Ta bort ",["0"]],"Remove<0>, {0}":["Ta bort<0>, ",["0"],""],"Results from current filters":"Resultat från aktuella filter","Retail price":"Rek.pris","Retail price amount":"Rek.prisbelopp","Retail price currency":"Rek.prisvaluta","Retail price list":"Rek.prislista","Roles":"Roller","Samling.io logotype":"Samling.io logotyp","Save":"Spara","Saving...":"Sparar...","Search":"Sök","Service item":"Serviceartikel","Service items":"Serviceartiklar","Settings":"Inställningar","Share":"Dela","Sign in":"Logga in","Sign in to your account":"Logga in på ditt konto","Sign in with Microsoft":"Logga in med Microsoft","Sign out":"Logga ut","Size":"Storlek","Size number":"Storleksnummer","Size type":"Storlekstyp","Slug":"Slug","Some external ID value...":"Något externt ID-värde...","Some group description...":"Någon gruppbeskrivning...","Some group name...":"Något gruppnamn...","Some slug value...":"Något slug-värde...","Sorry, we couldn’t find the page you’re looking for.":"Tyvärr kunde vi inte hitta sidan du letar efter.","Sort by":"Sortera efter","Status":"Status","Style":"Stil","Style description":"Stilbeskrivning","Style external id":"Externt ID för stilen","Style name":"Stilnamn","Style number":"Stilnummer","Styles":"Stilar","Styles, colors and sizes to associate with this collection.":"Stilar, färger och storlekar att associera med denna samling.","Success!":"Framgång!","Successfully signed in":"Framgångsrik inloggning","Successfully signed out":"Framgångsrik utloggning","Support":"Support","Tariff no":"Tariffnr","Technical error prevents login":"Tekniskt fel förhindrar inloggning","The collection \"{0}\" was successfully created.":["Samlingen \"",["0"],"\" skapades framgångsrikt."],"The collection \"{0}\" was successfully updated.":["Samlingen \"",["0"],"\" uppdaterades framgångsrikt."],"The given e-mail and password combination does not exist.":"Den angivna kombinationen av e-post och lösenord finns inte.","The group \"{0}\" was successfully updated.":["Gruppen \"",["0"],"\" uppdaterades framgångsrikt."],"The groups that this user belong to.":"De grupper som den här användaren tillhör.","The roles that are assigned to this user.":"De roller som tilldelas den här användaren.","The user \"{0}\" was successfully updated.":["Användaren \"",["0"],"\" uppdaterades."],"The users that belong to this group.":"De användare som tillhör den här gruppen.","There are no collections available to you. Talk an administrator to get access.":"Det finns inga samlingar tillgängliga för dig. Prata med en administratör för att få åtkomst.","These are all the collections that exist in the system.":"Det här är alla samlingar som finns i systemet.","These dates decide which item prices should be picked up for each price list. Each item price is associated with a start date and end date, so the date you choose has to fall within those.":"Dessa datum avgör vilka artikelpriser som ska hämtas för varje prislista. Varje artikelpris är kopplat till ett startdatum och slutdatum, så det datum du väljer måste falla inom dessa.","These roles will be assign to the user and determine what they can and cannot do.":"Dessa roller tilldelas användaren och avgör vad de kan och inte kan göra.","These users have access to the system.":"Dessa användare har tillgång till systemet.","This color first appears in this collection.":"Den här färgen introducerades i den här samlingen.","This filter is applied at the size level which means that it will affect which colors/sizes are selected for each style.":"Detta filter tillämpas på storleksnivå, vilket innebär att det påverkar vilka färger/storlekar som väljs för respektive stil.","This is a Core style, meaning that it represents the brand's core values.":"Detta är en Core-stil, vilket innebär att den representerar varumärkets kärnvärden.","This is a service item, meaning that it's our intention to never run out of stock with this style.":"Detta är en serviceartikel, vilket innebär att det är vår avsikt att alltid ha den på lager.","This is where you create collections and associate styles, colors and sizes to them.":"Det är här du skapar samlingar och associerar stilar, färger och storlekar till dem.","This style first appears in this collection.":"Den här stilen introducerades i den här samlingen.","Tick the data types that you want to appear on their own separate line in the exported file.":"Markera de datatyper som du vill ska visas på en egen separat rad i den exporterade filen.","Tired of collecting data from multiple different ERP systems and combining them in your Excel sheets? This Software-as-a-Service wants to help you.":"Trött på att samla in data från flera olika ERP-system och kombinera dem i dina Excel-ark? Den här SaaS-lösningen vill hjälpa dig.","To public page":"Till offentlig sida","Unauthorized.":"Obehörig.","Unit price amount":"Enhetsprisbelopp","Unit price currency":"Enhetsprisvaluta","Unit price list":"Enhetsprislista","Unit prices":"Enhetspriser","Unit volume":"Enhetsvolym","Up to {maxSizeMegaBytes} MB.":["Upp till ",["maxSizeMegaBytes"]," MB."],"Updated at":"Uppdaterad den","Upload an image":"Ladda upp en bild","Use groups to specify which collections and price lists users have access to.":"Använd grupper för att ange vilka samlingar och prislistor användarna har åtkomst till.","Use this form to create a new user. All users can sign in via a Google or Microsoft account matching the entered e-mail address. Filling in a password is optional.":"Använd det här formuläret för att skapa en ny användare. Alla användare kan logga in via ett Google- eller Microsoft-konto som matchar den angivna e-postadressen. Att fylla i ett lösenord är valfritt.","Use this form to export the current selection of items to file.":"Använd det här formuläret för att exportera det aktuella artikelurvalet till en fil.","Useful for integration with other systems.":"Användbar för integration med andra system.","User":"Användare","User profile":"Användarprofil","Users":"Användare","Uses the newer .xlsx format.":"Använder det nyare .xlsx-formatet.","View":"Visa","View details for {0}":["Visa information för ",["0"]],"View profile":"Visa profil","Viewer":"Användare","Viewers":"Användare","Which collections users of this group will have access to.":"Vilka samlingar användare av den här gruppen kommer att ha åtkomst till.","Which fields you want to include in the exported file.":"Vilka fält du vill inkludera i den exporterade filen.","Which format you want to export to.":"Vilket format du vill exportera till.","Which price lists users of this group will have access to.":"Vilka prislistor användare i den här gruppen kommer att ha tillgång till.","Wrong credentials":"Felaktiga inloggningsuppgifter","You are already signed in as {0} ({1})":["Du är redan inloggad som ",["0"]," (",["1"],")"],"You are now signed in with account {0}.":["Du är nu inloggad med konto ",["0"],"."],"You don't have access to any organizations. Please contact an administrator.":"Du har inte åtkomst till några organisationer. Kontakta en administratör.","You need to sign in to be able to view this page.":"Du måste logga in för att kunna visa den här sidan.","You were automatically signed out from account {userEmail} because of an expired token. Please sign in again.":["Du loggades automatiskt ut från konto ",["userEmail"]," på grund av en token som har upphört att gälla. Logga in igen."],"You've signed out from account {userEmail}.":["Du har loggat ut från konto ",["userEmail"],"."],"colors":"färger","jane.doe@example.com":"lena.svensson@exampel.se","or drag and drop.":"eller dra och släpp.","styles":"stilar","user@example.com":"användare@exempel.se","{0, plural, one {# collection} other {# collections}}":[["0","plural",{one:["#"," samling"],other:["#"," samlingar"]}]],"{0, plural, one {# price list} other {# price lists}}":[["0","plural",{one:["#"," prislista"],other:["#"," prislistor"]}]],"{0, plural, one {# style} other {# styles}}":[["0","plural",{one:["#"," stil"],other:["#"," stilar"]}]],"{0, plural, one {# user} other {# users}}":[["0","plural",{one:["#"," användare"],other:["#"," användare"]}]],"{0, plural, one {Disable # style} other {Disable # styles}}":[["0","plural",{one:["Inaktivera ","#"," stil"],other:["Inaktivera ","#"," stilar"]}]],"{0, plural, one {Enable # style} other {Enable # styles}}":[["0","plural",{one:["Aktivera ","#"," stil"],other:["Aktivera ","#"," stilar"]}]],"{0} (+{1} more)":[["0"]," (+",["1"]," till)"],"{0} filter {1}":[["0"]," filter ",["1"]],"{0} logotype":[["0"]," logotyp"],"{0} of {1} fields selected":[["0"]," av ",["1"]," fält valda"],"{0} profile":[["0"]," profil"],"{0}, up to {maxSizeMegaBytes} MB.":[["0"],", upp till ",["maxSizeMegaBytes"]," MB."],"Add price list":"Lägg till prislista","Date":"Datum","Remove price list":"Ta bort prislista","The price lists to add.":"Prislistorna att lägga till.","Use this form to add a new pricing date group.":"Använd det här formuläret för att lägga till en ny prisdatumgrupp."}}; \ No newline at end of file diff --git a/ui/src/locales/sv/messages.po b/ui/src/locales/sv/messages.po index 0b7999d..13bce83 100644 --- a/ui/src/locales/sv/messages.po +++ b/ui/src/locales/sv/messages.po @@ -57,11 +57,11 @@ msgstr "<0>Vi bryr oss om att skydda dina uppgifter. Läs vår <1>integritet msgid "Active" msgstr "Aktiv" -#: src/components/admin/UsersTable.tsx:101 +#: src/components/admin/UsersTable.tsx:99 msgid "Active users" msgstr "Aktiva användare" -#: src/components/admin/AddCollectionItemsModal.tsx:222 +#: src/components/admin/AddCollectionItemsModal.tsx:228 #: src/components/admin/NewCollectionPricingGroupModal.tsx:114 msgid "Add" msgstr "Lägg till" @@ -70,7 +70,7 @@ msgstr "Lägg till" msgid "Add collection" msgstr "Lägg till samling" -#: src/components/admin/AddCollectionItemsModal.tsx:169 +#: src/components/admin/AddCollectionItemsModal.tsx:158 msgid "Add collection items" msgstr "Lägg till artiklar" @@ -84,11 +84,11 @@ msgstr "Lägg till prisdatum för samlingen" msgid "Add group" msgstr "Lägg till grupp" -#: src/pages/app/admin/AdminEditCollection.tsx:634 +#: src/pages/app/admin/AdminEditCollection.tsx:633 msgid "Add items" msgstr "Lägg till artiklar" -#: src/components/admin/UsersTable.tsx:185 +#: src/components/admin/UsersTable.tsx:183 #: src/pages/app/admin/AdminEditGroup.tsx:379 msgid "Add user" msgstr "Lägg till användare" @@ -136,7 +136,7 @@ msgid "Administrators" msgstr "Administratörer" #: src/pages/app/admin/AdminCreateCollection.tsx:187 -#: src/pages/app/admin/AdminEditCollection.tsx:322 +#: src/pages/app/admin/AdminEditCollection.tsx:321 msgid "Advanced settings" msgstr "Avancerade inställningar" @@ -169,6 +169,7 @@ msgid "Are you sure you want to delete the user <0>{0}? This action cannot b msgstr "Är du säker på att du vill ta bort användaren <0>{0}? Den här åtgärden kan inte ångras." #: src/components/ExportForm.tsx:145 +#: src/components/admin/AddCollectionItemsModal.tsx:192 msgid "Attributes" msgstr "Attribut" @@ -207,17 +208,17 @@ msgstr "Kan logga in." msgid "Can view and export collections where explicit access has been configured in Groups." msgstr "Kan visa och exportera samlingar där explicit åtkomst har konfigurerats i Grupper." -#: src/components/admin/AddCollectionItemsModal.tsx:229 +#: src/components/admin/AddCollectionItemsModal.tsx:235 #: src/components/admin/ModalBase.tsx:242 #: src/components/admin/NewCollectionPricingGroupModal.tsx:121 #: src/pages/app/admin/AdminCreateCollection.tsx:224 -#: src/pages/app/admin/AdminEditCollection.tsx:361 +#: src/pages/app/admin/AdminEditCollection.tsx:360 #: src/pages/app/admin/AdminEditGroup.tsx:278 #: src/pages/app/admin/AdminEditUser.tsx:214 msgid "Cancel" msgstr "Avbryt" -#: src/components/admin/AddCollectionItemsModal.tsx:189 +#: src/components/admin/AddCollectionItemsModal.tsx:178 #: src/components/filters/CategoryFilter.tsx:54 msgid "Categories" msgstr "Kategorier" @@ -234,7 +235,7 @@ msgstr "Kategorinamn" msgid "Choose a color" msgstr "Välj en färg" -#: src/pages/app/admin/AdminEditCollection.tsx:679 +#: src/pages/app/admin/AdminEditCollection.tsx:678 msgid "Clear selection" msgstr "Rensa urvalet" @@ -284,7 +285,7 @@ msgstr "Färgnummer" msgid "Colors" msgstr "Färger" -#: src/pages/app/admin/AdminEditCollection.tsx:708 +#: src/pages/app/admin/AdminEditCollection.tsx:707 msgid "Colors / Sizes" msgstr "Färger / storlekar" @@ -342,8 +343,8 @@ msgstr "Skapad" #: src/components/admin/DeleteUserModal.tsx:50 #: src/components/admin/GroupsTable.tsx:103 #: src/components/admin/GroupsTable.tsx:166 -#: src/components/admin/UsersTable.tsx:242 -#: src/components/admin/UsersTable.tsx:319 +#: src/components/admin/UsersTable.tsx:240 +#: src/components/admin/UsersTable.tsx:317 msgid "Delete" msgstr "Ta bort" @@ -364,7 +365,11 @@ msgstr "Leveransperiod (fallande)" msgid "Description" msgstr "Beskrivning" -#: src/pages/app/admin/AdminEditCollection.tsx:868 +#: src/components/admin/AddCollectionItemsModal.tsx:193 +msgid "Different types of attributes must all get matched. Within the same type any may match." +msgstr "Olika typer av attribut måste alla matcha. Inom samma typ räcker det att en matchar." + +#: src/pages/app/admin/AdminEditCollection.tsx:871 msgid "Disable all" msgstr "Inaktivera alla" @@ -377,7 +382,7 @@ msgid "Downloading..." msgstr "Laddar ner..." #: src/components/admin/CreateUserModal.tsx:44 -#: src/components/admin/UsersTable.tsx:377 +#: src/components/admin/UsersTable.tsx:375 #: src/pages/app/admin/AdminEditUser.tsx:176 msgid "E-mail address" msgstr "E-postadress" @@ -389,8 +394,8 @@ msgstr "EAN-kod" #: src/components/admin/CollectionsTable.tsx:101 #: src/components/admin/GroupsTable.tsx:95 #: src/components/admin/GroupsTable.tsx:155 -#: src/components/admin/UsersTable.tsx:234 -#: src/components/admin/UsersTable.tsx:308 +#: src/components/admin/UsersTable.tsx:232 +#: src/components/admin/UsersTable.tsx:306 msgid "Edit" msgstr "Redigera" @@ -418,7 +423,7 @@ msgstr "Redigerare" msgid "Email address" msgstr "E-postadress" -#: src/pages/app/admin/AdminEditCollection.tsx:868 +#: src/pages/app/admin/AdminEditCollection.tsx:871 msgid "Enable all" msgstr "Aktivera alla" @@ -447,7 +452,7 @@ msgid "Export" msgstr "Exportera" #: src/pages/app/admin/AdminCreateCollection.tsx:206 -#: src/pages/app/admin/AdminEditCollection.tsx:341 +#: src/pages/app/admin/AdminEditCollection.tsx:340 #: src/pages/app/admin/AdminEditGroup.tsx:219 msgid "External ID" msgstr "Externt ID" @@ -486,8 +491,8 @@ msgid "Group by" msgstr "Gruppera på" #: src/components/admin/GroupsTable.tsx:35 -#: src/components/admin/UsersTable.tsx:227 -#: src/components/admin/UsersTable.tsx:403 +#: src/components/admin/UsersTable.tsx:225 +#: src/components/admin/UsersTable.tsx:401 #: src/pages/app/admin/AdminEditGroup.tsx:64 #: src/pages/app/admin/AdminEditUser.tsx:381 #: src/pages/app/admin/AdminGroups.tsx:12 @@ -523,7 +528,7 @@ msgstr "Bild att ladda upp" msgid "Images" msgstr "Bilder" -#: src/components/admin/UsersTable.tsx:95 +#: src/components/admin/UsersTable.tsx:93 msgid "Inactive users" msgstr "Inaktiva användare" @@ -532,7 +537,7 @@ msgstr "Inaktiva användare" msgid "It is recommended to give the image a 10:7 ratio and a minimum width and height of 1070 by 750 pixels." msgstr "Det rekommenderas att ge bilden ett bildförhållande kring 10:7 och en minsta bredd och höjd på 1070 x 750 pixlar." -#: src/pages/app/admin/AdminEditCollection.tsx:620 +#: src/pages/app/admin/AdminEditCollection.tsx:619 msgid "Items" msgstr "Artiklar" @@ -550,7 +555,7 @@ msgstr "Lena Svensson" msgid "Language" msgstr "Språk" -#: src/components/admin/UsersTable.tsx:215 +#: src/components/admin/UsersTable.tsx:213 #: src/pages/app/admin/AdminEditGroup.tsx:360 msgid "Last sign in" msgstr "Senaste inloggning" @@ -581,7 +586,7 @@ msgstr "Logga in" msgid "Make your changes, then hit save when done." msgstr "Gör dina ändringar och tryck sedan på spara när du är klar." -#: src/components/admin/AddCollectionItemsModal.tsx:172 +#: src/components/admin/AddCollectionItemsModal.tsx:161 #: src/components/admin/NewCollectionPricingGroupModal.tsx:81 msgid "Make your selection of items to add here. Manual adjustments can be made once added." msgstr "Gör ditt val av artiklar att lägga till här. Manuella justeringar kan göras när de har lagts till." @@ -593,7 +598,7 @@ msgstr "Hantera användare, associera roller och grupper individuellt." #: src/components/admin/CreateGroupModal.tsx:27 #: src/components/admin/CreateUserModal.tsx:34 #: src/components/admin/GroupsTable.tsx:70 -#: src/components/admin/UsersTable.tsx:376 +#: src/components/admin/UsersTable.tsx:374 #: src/pages/app/admin/AdminCreateCollection.tsx:166 #: src/pages/app/admin/AdminEditCollection.tsx:279 #: src/pages/app/admin/AdminEditGroup.tsx:186 @@ -610,8 +615,8 @@ msgstr "Namn" #: src/components/filters/ActiveFilters.tsx:81 #: src/components/filters/NewFilter.tsx:45 #: src/pages/app/admin/AdminCreateCollection.tsx:39 -#: src/pages/app/admin/AdminEditCollection.tsx:796 -#: src/pages/app/admin/AdminEditCollection.tsx:878 +#: src/pages/app/admin/AdminEditCollection.tsx:797 +#: src/pages/app/admin/AdminEditCollection.tsx:883 msgid "New" msgstr "Ny" @@ -624,7 +629,7 @@ msgstr "Ny samling" msgid "New color" msgstr "Ny färg" -#: src/pages/app/admin/AdminEditCollection.tsx:464 +#: src/pages/app/admin/AdminEditCollection.tsx:463 msgid "New date" msgstr "Nytt datum" @@ -632,7 +637,7 @@ msgstr "Nytt datum" msgid "New style" msgstr "Ny stil" -#: src/components/admin/UsersTable.tsx:378 +#: src/components/admin/UsersTable.tsx:376 msgid "Newest sign in" msgstr "Senaste inloggning" @@ -656,15 +661,15 @@ msgstr "Aviseringar" msgid "Number" msgstr "Nummer" -#: src/components/admin/AddCollectionItemsModal.tsx:254 +#: src/components/admin/AddCollectionItemsModal.tsx:260 msgid "Number of colors" msgstr "Antal färger" -#: src/components/admin/AddCollectionItemsModal.tsx:255 +#: src/components/admin/AddCollectionItemsModal.tsx:261 msgid "Number of sizes" msgstr "Antal storlekar" -#: src/components/admin/AddCollectionItemsModal.tsx:253 +#: src/components/admin/AddCollectionItemsModal.tsx:259 msgid "Number of styles" msgstr "Antal stilar" @@ -672,7 +677,7 @@ msgstr "Antal stilar" msgid "Often useful for ERP system imports." msgstr "Användbart vid import till ERP-system." -#: src/components/admin/UsersTable.tsx:379 +#: src/components/admin/UsersTable.tsx:377 msgid "Oldest sign in" msgstr "Äldsta inloggningen" @@ -740,7 +745,7 @@ msgstr "Priser" msgid "Pricing date" msgstr "Prisdatum" -#: src/pages/app/admin/AdminEditCollection.tsx:430 +#: src/pages/app/admin/AdminEditCollection.tsx:429 msgid "Pricing dates" msgstr "Datum för priser" @@ -764,7 +769,7 @@ msgstr "Ange din e-postadress nedan för att höra från vårt team." msgid "Remember me" msgstr "Kom ihåg mig" -#: src/components/admin/MultipleCombobox.tsx:136 +#: src/components/admin/MultipleCombobox.tsx:153 msgid "Remove filter" msgstr "Ta bort filter" @@ -787,7 +792,7 @@ msgstr "Ta bort {0}" msgid "Remove<0>, {0}" msgstr "Ta bort<0>, {0}" -#: src/components/admin/AddCollectionItemsModal.tsx:260 +#: src/components/admin/AddCollectionItemsModal.tsx:266 msgid "Results from current filters" msgstr "Resultat från aktuella filter" @@ -808,8 +813,8 @@ msgid "Retail price list" msgstr "Rek.prislista" #: src/components/admin/CreateUserModal.tsx:64 -#: src/components/admin/UsersTable.tsx:221 -#: src/components/admin/UsersTable.tsx:385 +#: src/components/admin/UsersTable.tsx:219 +#: src/components/admin/UsersTable.tsx:383 #: src/pages/app/admin/AdminEditUser.tsx:257 msgid "Roles" msgstr "Roller" @@ -820,14 +825,14 @@ msgid "Samling.io logotype" msgstr "Samling.io logotyp" #: src/pages/app/admin/AdminCreateCollection.tsx:239 -#: src/pages/app/admin/AdminEditCollection.tsx:376 +#: src/pages/app/admin/AdminEditCollection.tsx:375 #: src/pages/app/admin/AdminEditGroup.tsx:284 #: src/pages/app/admin/AdminEditUser.tsx:220 msgid "Save" msgstr "Spara" #: src/pages/app/admin/AdminCreateCollection.tsx:239 -#: src/pages/app/admin/AdminEditCollection.tsx:376 +#: src/pages/app/admin/AdminEditCollection.tsx:375 msgid "Saving..." msgstr "Sparar..." @@ -886,13 +891,13 @@ msgid "Size type" msgstr "Storlekstyp" #: src/pages/app/admin/AdminCreateCollection.tsx:196 -#: src/pages/app/admin/AdminEditCollection.tsx:331 +#: src/pages/app/admin/AdminEditCollection.tsx:330 #: src/pages/app/admin/AdminEditGroup.tsx:208 msgid "Slug" msgstr "Slug" #: src/pages/app/admin/AdminCreateCollection.tsx:205 -#: src/pages/app/admin/AdminEditCollection.tsx:340 +#: src/pages/app/admin/AdminEditCollection.tsx:339 #: src/pages/app/admin/AdminEditGroup.tsx:218 msgid "Some external ID value..." msgstr "Något externt ID-värde..." @@ -906,7 +911,7 @@ msgid "Some group name..." msgstr "Något gruppnamn..." #: src/pages/app/admin/AdminCreateCollection.tsx:195 -#: src/pages/app/admin/AdminEditCollection.tsx:330 +#: src/pages/app/admin/AdminEditCollection.tsx:329 #: src/pages/app/admin/AdminEditGroup.tsx:207 msgid "Some slug value..." msgstr "Något slug-värde..." @@ -920,16 +925,16 @@ msgstr "Tyvärr kunde vi inte hitta sidan du letar efter." msgid "Sort by" msgstr "Sortera efter" -#: src/components/admin/AddCollectionItemsModal.tsx:177 +#: src/components/admin/AddCollectionItemsModal.tsx:166 #: src/pages/app/admin/AdminEditGroup.tsx:354 msgid "Status" msgstr "Status" #: src/components/ExportForm.tsx:68 -#: src/components/admin/AddCollectionItemsModal.tsx:201 +#: src/components/admin/AddCollectionItemsModal.tsx:208 #: src/components/filters/ActiveFilters.tsx:40 #: src/components/filters/ActiveFilters.tsx:49 -#: src/pages/app/admin/AdminEditCollection.tsx:702 src/types/columns.ts:34 +#: src/pages/app/admin/AdminEditCollection.tsx:701 src/types/columns.ts:34 msgid "Style" msgstr "Stil" @@ -954,7 +959,7 @@ msgstr "Stilnummer" msgid "Styles" msgstr "Stilar" -#: src/pages/app/admin/AdminEditCollection.tsx:623 +#: src/pages/app/admin/AdminEditCollection.tsx:622 msgid "Styles, colors and sizes to associate with this collection." msgstr "Stilar, färger och storlekar att associera med denna samling." @@ -1027,7 +1032,7 @@ msgstr "Det finns inga samlingar tillgängliga för dig. Prata med en administra msgid "These are all the collections that exist in the system." msgstr "Det här är alla samlingar som finns i systemet." -#: src/pages/app/admin/AdminEditCollection.tsx:433 +#: src/pages/app/admin/AdminEditCollection.tsx:432 msgid "These dates decide which item prices should be picked up for each price list. Each item price is associated with a start date and end date, so the date you choose has to fall within those." msgstr "Dessa datum avgör vilka artikelpriser som ska hämtas för varje prislista. Varje artikelpris är kopplat till ett startdatum och slutdatum, så det datum du väljer måste falla inom dessa." @@ -1035,7 +1040,7 @@ msgstr "Dessa datum avgör vilka artikelpriser som ska hämtas för varje prisli msgid "These roles will be assign to the user and determine what they can and cannot do." msgstr "Dessa roller tilldelas användaren och avgör vad de kan och inte kan göra." -#: src/components/admin/UsersTable.tsx:146 +#: src/components/admin/UsersTable.tsx:144 msgid "These users have access to the system." msgstr "Dessa användare har tillgång till systemet." @@ -1043,6 +1048,10 @@ msgstr "Dessa användare har tillgång till systemet." msgid "This color first appears in this collection." msgstr "Den här färgen introducerades i den här samlingen." +#: src/components/admin/AddCollectionItemsModal.tsx:167 +msgid "This filter is applied at the size level which means that it will affect which colors/sizes are selected for each style." +msgstr "Detta filter tillämpas på storleksnivå, vilket innebär att det påverkar vilka färger/storlekar som väljs för respektive stil." + #: src/components/columns/data/Style.tsx:115 msgid "This is a Core style, meaning that it represents the brand's core values." msgstr "Detta är en Core-stil, vilket innebär att den representerar varumärkets kärnvärden." @@ -1123,7 +1132,7 @@ msgstr "Använd det här formuläret för att exportera det aktuella artikelurva msgid "Useful for integration with other systems." msgstr "Användbar för integration med andra system." -#: src/components/admin/UsersTable.tsx:209 +#: src/components/admin/UsersTable.tsx:207 msgid "User" msgstr "Användare" @@ -1133,7 +1142,7 @@ msgid "User profile" msgstr "Användarprofil" #: src/components/admin/GroupsTable.tsx:76 -#: src/components/admin/UsersTable.tsx:143 +#: src/components/admin/UsersTable.tsx:141 #: src/pages/app/admin/AdminEditGroup.tsx:330 #: src/pages/app/admin/AdminEditUser.tsx:56 #: src/pages/app/admin/AdminHome.tsx:25 src/pages/app/admin/AdminUsers.tsx:13 @@ -1248,11 +1257,11 @@ msgstr "{0, plural, one {# stil} other {# stilar}}" msgid "{0, plural, one {# user} other {# users}}" msgstr "{0, plural, one {# användare} other {# användare}}" -#: src/pages/app/admin/AdminEditCollection.tsx:652 +#: src/pages/app/admin/AdminEditCollection.tsx:651 msgid "{0, plural, one {Disable # style} other {Disable # styles}}" msgstr "{0, plural, one {Inaktivera # stil} other {Inaktivera # stilar}}" -#: src/pages/app/admin/AdminEditCollection.tsx:666 +#: src/pages/app/admin/AdminEditCollection.tsx:665 msgid "{0, plural, one {Enable # style} other {Enable # styles}}" msgstr "{0, plural, one {Aktivera # stil} other {Aktivera # stilar}}" @@ -1273,7 +1282,7 @@ msgstr "{0} logotyp" msgid "{0} of {1} fields selected" msgstr "{0} av {1} fält valda" -#: src/components/admin/UsersTable.tsx:257 +#: src/components/admin/UsersTable.tsx:255 msgid "{0} profile" msgstr "{0} profil" diff --git a/ui/src/pages/app/admin/AdminEditCollection.tsx b/ui/src/pages/app/admin/AdminEditCollection.tsx index b5fe97d..e821480 100644 --- a/ui/src/pages/app/admin/AdminEditCollection.tsx +++ b/ui/src/pages/app/admin/AdminEditCollection.tsx @@ -16,7 +16,6 @@ import { useAppDispatch, useAppSelector } from "../../../state/hooks"; import { CollectionPricing, CollectionWithItems, - NestedStyle, NestedStyleSortOrder, NestedStyleSummary, PriceListSummary, @@ -148,10 +147,6 @@ function CollectionEditForm({ () => collection.items.map((i) => i.style), [collection], ); - const collectionStylesMap = useMemo( - () => new Map(collectionStyles.map((cs) => [cs.id, cs])), - [collectionStyles], - ); const nestedStylesMap = useMemo(() => { const map: Map = new Map(); fullNestedStyles.forEach((style) => { @@ -310,7 +305,6 @@ function CollectionEditForm({
; allNestedStylesMap: Map; editableStyles: EditableStyle[]; setEditableStyles: Dispatch>; @@ -543,7 +535,6 @@ function CollectionItemsEditor({ ? { ...style, isNew, - colors: style.colors.map((color) => ({ ...color, isNew })), } : otherStyle, ), @@ -609,14 +600,15 @@ function CollectionItemsEditor({ return (
- {itemFilterChoices && } + {itemFilterChoices && ( + + )}

@@ -785,18 +777,22 @@ function EditableCollectionItemRow({ selected ? "text-indigo-600" : "text-gray-900", )} > -
- {i18nDbText(style.name)} +
+
+
+ {i18nDbText(style.name)} +
+
{style.number}
+
+
+ setStyleIsNew(style, evt.target.checked)} + /> + + {t`New`} +
-
{style.number}
- - - setStyleIsNew(style, evt.target.checked)} - /> - - {t`New`} {style.colors.map((color) => ( @@ -873,12 +869,16 @@ function ColorCell({
- setColorIsNew(color, evt.target.checked)} - /> - - {t`New`} + {anyEnabled && ( + <> + setColorIsNew(color, evt.target.checked)} + /> + + {t`New`} + + )}

diff --git a/ui/src/types/admin.ts b/ui/src/types/admin.ts index df6f269..32ef64d 100644 --- a/ui/src/types/admin.ts +++ b/ui/src/types/admin.ts @@ -65,3 +65,15 @@ export interface EditableStyle { colors: EditableColor[]; isNew: boolean; } + +export function transferIsNew(prev: EditableStyle, current: EditableStyle): EditableStyle { + current.isNew = prev.isNew; + prev.colors.forEach((prevColor) => { + current.colors.forEach((currColor) => { + if (currColor.id === prevColor.id) { + currColor.isNew = prevColor.isNew; + } + }) + }) + return current; +}