Skip to content

Commit

Permalink
[BulkActions] Update BulkActions and add in SelectAllActions (#7833)
Browse files Browse the repository at this point in the history
It's the revert of the revert 🫠

### WHY are these changes introduced?

Fixes Shopify/web#74192

Spin link in situ:
https://admin.web.discounts-update-save-as.marc-thomas.eu.spin.dev/store/shop1/orders?inContextTimeframe=none

### WHAT is this pull request doing?

#### Before

<img width="2440" alt="Screenshot 2022-09-28 at 11 42 54"
src="https://user-images.githubusercontent.com/2562596/192759539-4fece161-5bef-44ed-961f-4a342f495c69.png">
<img width="2440" alt="Screenshot 2022-09-28 at 11 42 28"
src="https://user-images.githubusercontent.com/2562596/192759582-834b2d6a-f0e2-4d07-803f-4be435559495.png">

#### After

<img width="2440" alt="Screenshot 2022-09-28 at 11 42 39"
src="https://user-images.githubusercontent.com/2562596/192761041-9b38059f-3b80-4a8e-8261-633589098bb4.png">
<img width="2440" alt="Screenshot 2022-09-28 at 11 42 43"
src="https://user-images.githubusercontent.com/2562596/192761078-f7fe25e1-4181-49ab-8545-c6e923917d2c.png">
<img width="2440" alt="Screenshot 2022-09-28 at 11 43 00"
src="https://user-images.githubusercontent.com/2562596/192761112-bca384f4-ec7f-435c-80a7-b96f2ef7cbb8.png">
<img width="2440" alt="Screenshot 2022-09-28 at 11 43 03"
src="https://user-images.githubusercontent.com/2562596/192761145-e6feb191-0430-420c-a77f-9dac004a418a.png">

This PR updates the BulkActions component, used on the IndexTable and
ResourceList components, as well as moving some functionality from
BulkActions into the new SelectAllActions component. This is to support
the [Unified Index Filtering and
Search](https://minerva.shopifycloud.com/auth/minerva?request=2905eaf2-0cf1-493c-b6d3-82e6385d6352&rd=https://vault.shopify.io%2Fprojects%2F24858)
project.

This PR introduces a new UX pattern for the BulkActions component. It
has been separated from the `Select X` actions – which is now the
`SelectAllActions` component, and the `BulkActions` component gets
rendered afterward in the DOM.

Components that consume the BulkActions use the new
`useIsBulkActionSticky` hook to determine whether the BulkActions
component should be `position: fixed` or `position: absolute` with a
calculated top position. We have had to do this rather than use a
regular `position: sticky` on the BulkActions element, as the keyboard
focus order needs to be logically preserved, and moving the BulkActions
component under the table/resource list HTML in the DOM would provide a
bad experience for users navigating via keyboard.

The IndexTable and ResourceList components have been updated with this
new component.

The `CheckableButton` component has been simplified, as a lot of the
logic required in the existing implementation is no longer needed.

As part of this work, small-screen BulkActions and SelectAllActions
support has been removed, as we are removing bulk action and select
functionality for small screens, as an intentional decision as part of
the Unified Index Filtering and Search project.

<!-- ℹ️ Delete the following for small / trivial changes -->

### How to 🎩

🖥 [Local development
instructions](https://github.com/Shopify/polaris/blob/main/README.md#local-development)
🗒 [General tophatting
guidelines](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md)
📄 [Changelog
guidelines](https://github.com/Shopify/polaris/blob/main/.github/CONTRIBUTING.md#changelog)

<!--
  Give as much information as needed to experiment with the component
  in the playground.
-->

<details>
<summary>Copy-paste this code in
<code>playground/Playground.tsx</code>:</summary>

```jsx
import React from 'react';
import {Page} from '../src';

export function Playground() {
  return (
    <Page title="Playground">
      {/* Add the code you want to test in here */}
    </Page>
  );
}
```

</details>

### 🎩 checklist

- [x] Tested on
[mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing)
- [x] Tested on [multiple
browsers](https://help.shopify.com/en/manual/shopify-admin/supported-browsers)
- [x] Tested for
[accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md)
- [x] Updated the component's `README.md` with documentation changes
- [x] [Tophatted
documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md)
changes in the style guide
  • Loading branch information
mrcthms committed Dec 5, 2022
1 parent 38b2a00 commit e475951
Show file tree
Hide file tree
Showing 46 changed files with 1,331 additions and 1,094 deletions.
5 changes: 5 additions & 0 deletions .changeset/odd-spoons-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/polaris': minor
---

Separated BulkActions and SelectAllActions for new sticky bulk actions experience
4 changes: 2 additions & 2 deletions polaris-react/locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@
"defaultItemSingular": "Položka",
"defaultItemPlural": "Položky",
"allItemsSelected": "Bylo vybráno veškeré zboží typu {resourceNamePlural} ({itemsLength} a více).",
"selected": "Vybráno: {selectedItemsCount}",
"selected": "Vybráno: {selectedItemsCount}.",
"a11yCheckboxDeselectAllSingle": "Zrušit výběr: {resourceNameSingular}",
"a11yCheckboxSelectAllSingle": "Vybrat: {resourceNameSingular}",
"a11yCheckboxDeselectAllMultiple": "Zrušit celý výběr: {resourceNamePlural} ({itemsLength})",
Expand All @@ -294,7 +294,7 @@
"onboardingBadgeText": "Novinka",
"resourceLoadingAccessibilityLabel": "{resourceNamePlural} se načítají…",
"selectAllLabel": "Vybrat vše: {resourceNamePlural}",
"selected": "Vybráno: {selectedItemsCount}",
"selected": "Vybráno: {selectedItemsCount}.",
"undo": "Vrátit zpět",
"selectAllItems": "Vybrat vše typu {resourceNamePlural} ({itemsLength} a více)",
"selectItem": "Vybrat: {resourceName}",
Expand Down
4 changes: 2 additions & 2 deletions polaris-react/locales/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
"defaultItemSingular": "Vare",
"defaultItemPlural": "Varer",
"allItemsSelected": "Alle mere end {itemsLength} {resourceNamePlural} er valgt.",
"selected": "{selectedItemsCount} valgt",
"selected": "{selectedItemsCount} valgt.",
"a11yCheckboxDeselectAllSingle": "Fravælg {resourceNameSingular}",
"a11yCheckboxSelectAllSingle": "Vælg {resourceNameSingular}",
"a11yCheckboxDeselectAllMultiple": "Fravælg alle {itemsLength} {resourceNamePlural}",
Expand All @@ -292,7 +292,7 @@
"onboardingBadgeText": "Nyhed",
"resourceLoadingAccessibilityLabel": "Indlæser {resourceNamePlural}…",
"selectAllLabel": "Vælg alle {resourceNamePlural}",
"selected": "{selectedItemsCount} valgt",
"selected": "{selectedItemsCount} valgt.",
"undo": "Fortryd",
"selectAllItems": "Vælg alle {itemsLength}+ {resourceNamePlural}",
"selectItem": "Vælg {resourceName}",
Expand Down
4 changes: 2 additions & 2 deletions polaris-react/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
"defaultItemSingular": "Artikel",
"defaultItemPlural": "Artikel",
"allItemsSelected": "Alle {itemsLength}+ {resourceNamePlural} wurden ausgewählt.",
"selected": "{selectedItemsCount} ausgewählt",
"selected": "{selectedItemsCount} ausgewählt.",
"a11yCheckboxDeselectAllSingle": "Auswahl für {resourceNameSingular} aufheben",
"a11yCheckboxSelectAllSingle": "{resourceNameSingular} auswählen",
"a11yCheckboxDeselectAllMultiple": "Auswahl für alle {itemsLength} {resourceNamePlural} aufheben",
Expand All @@ -292,7 +292,7 @@
"onboardingBadgeText": "Neu",
"resourceLoadingAccessibilityLabel": "{resourceNamePlural} werden geladen ...",
"selectAllLabel": "Alle {resourceNamePlural} auswählen",
"selected": "{selectedItemsCount} ausgewählt",
"selected": "{selectedItemsCount} ausgewählt.",
"undo": "Rückgängig machen",
"selectAllItems": "Alle {itemsLength}+ {resourceNamePlural} auswählen",
"selectItem": "{resourceName} auswählen",
Expand Down
4 changes: 2 additions & 2 deletions polaris-react/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"defaultItemSingular": "Item",
"defaultItemPlural": "Items",
"allItemsSelected": "All {itemsLength}+ {resourceNamePlural} are selected.",
"selected": "{selectedItemsCount} selected",
"selected": "{selectedItemsCount} selected.",
"a11yCheckboxDeselectAllSingle": "Deselect {resourceNameSingular}",
"a11yCheckboxSelectAllSingle": "Select {resourceNameSingular}",
"a11yCheckboxDeselectAllMultiple": "Deselect all {itemsLength} {resourceNamePlural}",
Expand All @@ -174,7 +174,7 @@
"onboardingBadgeText": "New",
"resourceLoadingAccessibilityLabel": "Loading {resourceNamePlural}…",
"selectAllLabel": "Select all {resourceNamePlural}",
"selected": "{selectedItemsCount} selected",
"selected": "{selectedItemsCount} selected.",
"undo": "Undo",
"selectAllItems": "Select all {itemsLength}+ {resourceNamePlural}",
"selectItem": "Select {resourceName}",
Expand Down
4 changes: 2 additions & 2 deletions polaris-react/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@
"defaultItemSingular": "Artículo",
"defaultItemPlural": "Artículos",
"allItemsSelected": "Hay más de {itemsLength} {resourceNamePlural} seleccionados.",
"selected": "Seleccionados: {selectedItemsCount}",
"selected": "Seleccionados: {selectedItemsCount}.",
"a11yCheckboxDeselectAllSingle": "Deseleccionar {resourceNameSingular}",
"a11yCheckboxSelectAllSingle": "Seleccionar {resourceNameSingular}",
"a11yCheckboxDeselectAllMultiple": "Deseleccionar {itemsLength} {resourceNamePlural}",
Expand All @@ -293,7 +293,7 @@
"onboardingBadgeText": "Nuevo",
"resourceLoadingAccessibilityLabel": "Cargando {resourceNamePlural}...",
"selectAllLabel": "Seleccionar los recursos de {resourceNamePlural}",
"selected": "Seleccionados: {selectedItemsCount}",
"selected": "Seleccionados: {selectedItemsCount}.",
"undo": "Deshacer",
"selectAllItems": "Seleccionar los más de {itemsLength} recursos de {resourceNamePlural}",
"selectItem": "Seleccionar {resourceName}",
Expand Down
4 changes: 2 additions & 2 deletions polaris-react/locales/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
"defaultItemSingular": "Tuote",
"defaultItemPlural": "Tuotteet",
"allItemsSelected": "Kaikki {itemsLength} ja {resourceNamePlural} on valittu.",
"selected": "{selectedItemsCount} valittu",
"selected": "{selectedItemsCount} valittu.",
"a11yCheckboxDeselectAllSingle": "Poista valinta kohteesta {resourceNameSingular}",
"a11yCheckboxSelectAllSingle": "Valitse {resourceNameSingular}",
"a11yCheckboxDeselectAllMultiple": "Poista kaikkien valinta: {itemsLength} x {resourceNamePlural}",
Expand All @@ -292,7 +292,7 @@
"onboardingBadgeText": "Uusi",
"resourceLoadingAccessibilityLabel": "Ladataan {resourceNamePlural}…",
"selectAllLabel": "Valitse kaikki {resourceNamePlural}",
"selected": "{selectedItemsCount} valittu",
"selected": "{selectedItemsCount} valittu.",
"undo": "Peru",
"selectAllItems": "Valitse kaikki {itemsLength} ja {resourceNamePlural}",
"selectItem": "Valitse {resourceName}",
Expand Down
4 changes: 2 additions & 2 deletions polaris-react/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@
"defaultItemSingular": "Article",
"defaultItemPlural": "Articles",
"allItemsSelected": "La totalité des {itemsLength}+ {resourceNamePlural} sont sélectionnés.",
"selected": "{selectedItemsCount} sélectionné(s)",
"selected": "{selectedItemsCount} sélectionné(s)",
"a11yCheckboxDeselectAllSingle": "Désélectionner {resourceNameSingular}",
"a11yCheckboxSelectAllSingle": "Sélectionner {resourceNameSingular}",
"a11yCheckboxDeselectAllMultiple": "Désélectionner la totalité des {itemsLength} {resourceNamePlural}",
Expand All @@ -293,7 +293,7 @@
"onboardingBadgeText": "Nouveau",
"resourceLoadingAccessibilityLabel": "Chargement de {resourceNamePlural} en cours…",
"selectAllLabel": "Sélectionner la totalité des {resourceNamePlural}",
"selected": "{selectedItemsCount} sélectionné(s)",
"selected": "{selectedItemsCount} sélectionné(s)",
"undo": "Annuler",
"selectAllItems": "Sélectionner la totalité des {itemsLength}+ {resourceNamePlural}",
"selectItem": "Sélectionner {resourceName}",
Expand Down
4 changes: 2 additions & 2 deletions polaris-react/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@
"defaultItemSingular": "Articolo",
"defaultItemPlural": "Articoli",
"allItemsSelected": "Tutti gli oltre {itemsLength} {resourceNamePlural} sono selezionati.",
"selected": "{selectedItemsCount} selezionati",
"selected": "{selectedItemsCount} selezionati.",
"a11yCheckboxDeselectAllSingle": "Deseleziona {resourceNameSingular}",
"a11yCheckboxSelectAllSingle": "Seleziona {resourceNameSingular}",
"a11yCheckboxDeselectAllMultiple": "Deseleziona tutto: {itemsLength} {resourceNamePlural}",
Expand All @@ -293,7 +293,7 @@
"onboardingBadgeText": "Novità",
"resourceLoadingAccessibilityLabel": "Caricamento {resourceNamePlural} in corso",
"selectAllLabel": "Seleziona tutto: {resourceNamePlural}",
"selected": "{selectedItemsCount} selezionati",
"selected": "{selectedItemsCount} selezionati.",
"undo": "Annulla",
"selectAllItems": "Seleziona tutti i {itemsLength}+ {resourceNamePlural}",
"selectItem": "Seleziona {resourceName}",
Expand Down
4 changes: 2 additions & 2 deletions polaris-react/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
"defaultItemSingular": "アイテム",
"defaultItemPlural": "アイテム",
"allItemsSelected": "すべての{itemsLength}+{resourceNamePlural}が選択されています。",
"selected": "{selectedItemsCount}を選択済み",
"selected": "{selectedItemsCount}個を選択済み。",
"a11yCheckboxDeselectAllSingle": "{resourceNameSingular}の選択を解除する",
"a11yCheckboxSelectAllSingle": "{resourceNameSingular}を選択する",
"a11yCheckboxDeselectAllMultiple": "すべての{itemsLength}の{resourceNamePlural}の選択を解除する",
Expand All @@ -292,7 +292,7 @@
"onboardingBadgeText": "新規",
"resourceLoadingAccessibilityLabel": "{resourceNamePlural}を読み込んでいます...",
"selectAllLabel": "すべての{resourceNamePlural}を選択する",
"selected": "{selectedItemsCount}を選択済み",
"selected": "{selectedItemsCount}個を選択済み。",
"undo": "元に戻す",
"selectAllItems": "すべての{itemsLength}+{resourceNamePlural}を選択する",
"selectItem": "{resourceName}を選択する",
Expand Down
4 changes: 2 additions & 2 deletions polaris-react/locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
"defaultItemSingular": "품목",
"defaultItemPlural": "품목",
"allItemsSelected": "길이가 {itemsLength} 이상인 모든 {resourceNamePlural}이(가) 선택되었습니다.",
"selected": "{selectedItemsCount}개 선택됨",
"selected": "{selectedItemsCount}개가 선택되었습니다.",
"a11yCheckboxDeselectAllSingle": "{resourceNameSingular} 선택 취소",
"a11yCheckboxSelectAllSingle": "{resourceNameSingular} 선택",
"a11yCheckboxDeselectAllMultiple": "{itemsLength}개의 모든 {resourceNamePlural} 선택 취소",
Expand All @@ -292,7 +292,7 @@
"onboardingBadgeText": "신규",
"resourceLoadingAccessibilityLabel": "{resourceNamePlural} 로드 중...",
"selectAllLabel": "{resourceNamePlural} 모두 선택",
"selected": "{selectedItemsCount}개 선택됨",
"selected": "{selectedItemsCount}개가 선택되었습니다.",
"undo": "실행 취소",
"selectAllItems": "길이가 {itemsLength} 이상인 모든 {resourceNamePlural} 선택",
"selectItem": "{resourceName} 선택",
Expand Down
4 changes: 2 additions & 2 deletions polaris-react/locales/nb.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
"defaultItemSingular": "Vare",
"defaultItemPlural": "Varer",
"allItemsSelected": "Alle {itemsLength} + {resourceNamePlural} er valgt.",
"selected": "{selectedItemsCount} valgt",
"selected": "{selectedItemsCount} valgt.",
"a11yCheckboxDeselectAllSingle": "Opphev valg av {resourceNameSingular}",
"a11yCheckboxSelectAllSingle": "Velg {resourceNameSingular}",
"a11yCheckboxDeselectAllMultiple": "Opphev alle valg av {itemsLength} {resourceNamePlural}",
Expand All @@ -292,7 +292,7 @@
"onboardingBadgeText": "Ny",
"resourceLoadingAccessibilityLabel": "Laster inn {resourceNamePlural} …",
"selectAllLabel": "Velg alle {resourceNamePlural}",
"selected": "{selectedItemsCount} valgt",
"selected": "{selectedItemsCount} valgt.",
"undo": "Angre",
"selectAllItems": "Velg alle {itemsLength} {resourceNamePlural}",
"selectItem": "Velg {resourceName}",
Expand Down
4 changes: 2 additions & 2 deletions polaris-react/locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
"defaultItemSingular": "Artikel",
"defaultItemPlural": "Artikelen",
"allItemsSelected": "Alle {itemsLength}+ {resourceNamePlural} zijn geselecteerd.",
"selected": "{selectedItemsCount} geselecteerd",
"selected": "{selectedItemsCount} geselecteerd.",
"a11yCheckboxDeselectAllSingle": "{resourceNameSingular} deselecteren",
"a11yCheckboxSelectAllSingle": "{resourceNameSingular} selecteren",
"a11yCheckboxDeselectAllMultiple": "Alle {itemsLength} {resourceNamePlural} deselecteren",
Expand All @@ -292,7 +292,7 @@
"onboardingBadgeText": "Nieuw",
"resourceLoadingAccessibilityLabel": "{resourceNamePlural} laden...",
"selectAllLabel": "Alle {resourceNamePlural} selecteren",
"selected": "{selectedItemsCount} geselecteerd",
"selected": "{selectedItemsCount} geselecteerd.",
"undo": "Ongedaan maken",
"selectAllItems": "Alle {itemsLength}+ {resourceNamePlural} selecteren",
"selectItem": "{resourceName} selecteren",
Expand Down
4 changes: 2 additions & 2 deletions polaris-react/locales/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@
"defaultItemSingular": "Pozycja",
"defaultItemPlural": "Pozycje",
"allItemsSelected": "Wybrano wszystkie {itemsLength}+ {resourceNamePlural}.",
"selected": "Wybrano {selectedItemsCount}",
"selected": "Wybrano {selectedItemsCount}.",
"a11yCheckboxDeselectAllSingle": "Usuń wybór {resourceNameSingular}",
"a11yCheckboxSelectAllSingle": "Wybierz {resourceNameSingular}",
"a11yCheckboxDeselectAllMultiple": "Odznacz wszystkie {itemsLength} {resourceNamePlural}",
Expand All @@ -294,7 +294,7 @@
"onboardingBadgeText": "Nowy",
"resourceLoadingAccessibilityLabel": "Ładowanie {resourceNamePlural}...",
"selectAllLabel": "Wybierz wszystkie {resourceNamePlural}",
"selected": "Wybrano {selectedItemsCount}",
"selected": "Wybrano {selectedItemsCount}.",
"undo": "Cofnij",
"selectAllItems": "Wybierz wszystkie {itemsLength}+ {resourceNamePlural}",
"selectItem": "Wybierz {resourceName}",
Expand Down
4 changes: 2 additions & 2 deletions polaris-react/locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@
"defaultItemSingular": "Item",
"defaultItemPlural": "Itens",
"allItemsSelected": "Todos os {itemsLength}+ {resourceNamePlural} estão selecionados.",
"selected": "{selectedItemsCount} selecionados",
"selected": "{selectedItemsCount} selecionados.",
"a11yCheckboxDeselectAllSingle": "Desmarcar {resourceNameSingular}",
"a11yCheckboxSelectAllSingle": "Selecionar {resourceNameSingular}",
"a11yCheckboxDeselectAllMultiple": "Desmarcar todos os {itemsLength} {resourceNamePlural}",
Expand All @@ -293,7 +293,7 @@
"onboardingBadgeText": "Novo",
"resourceLoadingAccessibilityLabel": "Carregando {resourceNamePlural}…",
"selectAllLabel": "Selecionar todos os {resourceNamePlural}",
"selected": "{selectedItemsCount} selecionados",
"selected": "{selectedItemsCount} selecionados.",
"undo": "Desfazer",
"selectAllItems": "Selecionar todos os {resourceNamePlural} maiores que {itemsLength}",
"selectItem": "Selecionar {resourceName}",
Expand Down
4 changes: 2 additions & 2 deletions polaris-react/locales/pt-PT.json
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@
"defaultItemSingular": "Item",
"defaultItemPlural": "Itens",
"allItemsSelected": "Todos os itens de {resourceNamePlural} de {itemsLength}+ foram selecionados.",
"selected": "{selectedItemsCount} selecionada",
"selected": "{selectedItemsCount} selecionados.",
"a11yCheckboxDeselectAllSingle": "Desselecionar {resourceNameSingular}",
"a11yCheckboxSelectAllSingle": "Selecionar {resourceNameSingular}",
"a11yCheckboxDeselectAllMultiple": "Desselecionar tudo {itemsLength} {resourceNamePlural}",
Expand All @@ -293,7 +293,7 @@
"onboardingBadgeText": "Novo",
"resourceLoadingAccessibilityLabel": "A carregar {resourceNamePlural}",
"selectAllLabel": "Selecionar tudo {resourceNamePlural}",
"selected": "{selectedItemsCount} selecionada",
"selected": "{selectedItemsCount} selecionados.",
"undo": "Anular",
"selectAllItems": "Selecionar todos os itens de {resourceNamePlural} de {itemsLength}+",
"selectItem": "Selecionar {resourceName}",
Expand Down
4 changes: 2 additions & 2 deletions polaris-react/locales/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
"defaultItemSingular": "Artikel",
"defaultItemPlural": "Artiklar",
"allItemsSelected": "Alla {itemsLength}+ {resourceNamePlural} har valts.",
"selected": "{selectedItemsCount} har valts",
"selected": "{selectedItemsCount} har valts.",
"a11yCheckboxDeselectAllSingle": "Avmarkera {resourceNameSingular}",
"a11yCheckboxSelectAllSingle": "Välj {resourceNameSingular}",
"a11yCheckboxDeselectAllMultiple": "Avmarkera alla {itemsLength} {resourceNamePlural}",
Expand All @@ -292,7 +292,7 @@
"onboardingBadgeText": "Nytt",
"resourceLoadingAccessibilityLabel": "Laddar {resourceNamePlural}",
"selectAllLabel": "Välj alla {resourceNamePlural}",
"selected": "{selectedItemsCount} har valts",
"selected": "{selectedItemsCount} har valts.",
"undo": "Ångra",
"selectAllItems": "Välj alla {itemsLength}+ {resourceNamePlural}",
"selectItem": "Välj {resourceName}",
Expand Down
4 changes: 2 additions & 2 deletions polaris-react/locales/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
"defaultItemSingular": "Ürün",
"defaultItemPlural": "Ürünler",
"allItemsSelected": "Şunların tümü seçildi: {itemsLength}+ {resourceNamePlural}.",
"selected": "{selectedItemsCount} adet seçildi",
"selected": "{selectedItemsCount} adet seçildi.",
"a11yCheckboxDeselectAllSingle": "{resourceNameSingular} kaynağının seçimini kaldır",
"a11yCheckboxSelectAllSingle": "{resourceNameSingular} kaynağını seç",
"a11yCheckboxDeselectAllMultiple": "Şunların tümünün seçimini kaldır: {itemsLength} {resourceNamePlural}",
Expand All @@ -292,7 +292,7 @@
"onboardingBadgeText": "Yeni",
"resourceLoadingAccessibilityLabel": "{resourceNamePlural} yükleniyor…",
"selectAllLabel": "{resourceNamePlural} kaynaklarının tümünü seç",
"selected": "{selectedItemsCount} adet seçildi",
"selected": "{selectedItemsCount} adet seçildi.",
"undo": "Geri al",
"selectAllItems": "Şunların tümünü seç: {itemsLength}+ {resourceNamePlural}",
"selectItem": "{resourceName} kaynağını seç",
Expand Down
4 changes: 2 additions & 2 deletions polaris-react/locales/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
"defaultItemSingular": "Mặt hàng",
"defaultItemPlural": "Mặt hàng",
"allItemsSelected": "Đã chọn tất cả {itemsLength}+ {resourceNamePlural}.",
"selected": "Đã chọn {selectedItemsCount}",
"selected": "Đã chọn {selectedItemsCount}.",
"a11yCheckboxDeselectAllSingle": "Bỏ chọn {resourceNameSingular}",
"a11yCheckboxSelectAllSingle": "Chọn {resourceNameSingular}",
"a11yCheckboxDeselectAllMultiple": "Bỏ chọn tất cả {itemsLength} {resourceNamePlural}",
Expand All @@ -292,7 +292,7 @@
"onboardingBadgeText": "Mới",
"resourceLoadingAccessibilityLabel": "Đang tải {resourceNamePlural}…",
"selectAllLabel": "Chọn tất cả {resourceNamePlural}",
"selected": "Đã chọn {selectedItemsCount}",
"selected": "Đã chọn {selectedItemsCount}.",
"undo": "Hoàn tác",
"selectAllItems": "Chọn tất cả {itemsLength}+ {resourceNamePlural}",
"selectItem": "Chọn {resourceName}",
Expand Down
4 changes: 2 additions & 2 deletions polaris-react/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
"defaultItemSingular": "",
"defaultItemPlural": "",
"allItemsSelected": "已选择所有 {itemsLength}+ 个{resourceNamePlural}。",
"selected": "已选择 {selectedItemsCount} ",
"selected": "已选择 {selectedItemsCount} 项。",
"a11yCheckboxDeselectAllSingle": "取消选择 {resourceNameSingular}",
"a11yCheckboxSelectAllSingle": "选择 {resourceNameSingular}",
"a11yCheckboxDeselectAllMultiple": "取消选择所有 {itemsLength} 个 {resourceNamePlural}",
Expand All @@ -292,7 +292,7 @@
"onboardingBadgeText": "",
"resourceLoadingAccessibilityLabel": "正在加载 {resourceNamePlural}…",
"selectAllLabel": "选择所有 {resourceNamePlural}",
"selected": "已选择 {selectedItemsCount} ",
"selected": "已选择 {selectedItemsCount} 项。",
"undo": "撤销",
"selectAllItems": "选择所有 {itemsLength}+ 个 {resourceNamePlural}",
"selectItem": "选择 {resourceName}",
Expand Down

0 comments on commit e475951

Please sign in to comment.