Skip to content

Commit 8a7bec7

Browse files
authored
Add translation checker
1 parent 954aa63 commit 8a7bec7

File tree

6 files changed

+37
-7
lines changed

6 files changed

+37
-7
lines changed

.github/workflows/translations.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Check translations
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- '*.x'
8+
pull_request:
9+
10+
jobs:
11+
translations:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
- name: Setup PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: '8.3'
21+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
22+
coverage: none
23+
- name: Install dependencies
24+
run: composer install --prefer-dist --no-interaction
25+
- name: Check translations
26+
uses: rapidez/[email protected]

lang/nl.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"Create an account": "Account aanmaken",
2424
"Credentials": "Gegevens",
2525
"Description": "Beschrijving",
26+
"Email": "Email",
2627
"Fax": "Fax",
2728
"Filters": "Filters",
2829
"Firstname": "Voornaam",
@@ -80,6 +81,7 @@
8081
"Subtotal": "Subtotaal",
8182
"Success": "Succes",
8283
"Suffix": "Achtervoegsel",
84+
"Tax": "Btw",
8385
"Tax ID": "Btw-id",
8486
"Telephone": "Telefoonnummer",
8587
"Thank you for subscribing!": "Bedankt voor het inschrijven!",
@@ -94,5 +96,7 @@
9496
"We will send a confirmation of your order to": "Wij zullen een confirmatie sturen naar",
9597
"Wishlist": "Wensenlijst",
9698
"Yes": "Ja",
97-
"You don't have anything in your cart.": "Deze winkelwagen is leeg."
99+
"You don't have anything in your cart.": "Deze winkelwagen is leeg.",
100+
"You have filtered for:": "Je hebt gefilterd op:",
101+
"Your order is currently:": "Je bestelling is op dit moment:"
98102
}

resources/views/checkout/steps/success.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="bg-highlight rounded p-8">
66
<p>@lang('We will get to work for you right away')</p>
77
<p>@lang('We will send a confirmation of your order to') <span class="font-bold">@{{ order.email }}</span></p>
8-
<p>@lang('Your order is currently'): <span class="font-bold">@{{ order.status }}</span> <a class="inline-block" href="#" v-on:click.prevent="(e) => {e.target.classList.add('animate-spin'); refreshOrder().finally(() => e.target.classList.remove('animate-spin'))}">&#8635;</a></p>
8+
<p>@lang('Your order is currently:') <span class="font-bold">@{{ order.status }}</span> <a class="inline-block" href="#" v-on:click.prevent="(e) => {e.target.classList.add('animate-spin'); refreshOrder().finally(() => e.target.classList.remove('animate-spin'))}">&#8635;</a></p>
99
</div>
1010

1111
<div class="mt-4">

resources/views/layouts/partials/footer/social.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<div class="flex space-x-6 md:order-2">
22
<a href="https://github.com/rapidez" target="_blank" class="text-inactive hover:text-text-neutral">
3-
<span class="sr-only">@lang('GitHub')</span>
3+
<span class="sr-only">GitHub</span>
44
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="w-6 h-6" viewBox="0 0 16 16">
55
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"/>
66
</svg>
77
</a>
88
<a href="https://twitter.com/rapidez_io" target="_blank" class="text-inactive hover:text-text-neutral">
9-
<span class="sr-only">@lang('Twitter')</span>
9+
<span class="sr-only">Twitter</span>
1010
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="w-6 h-6" viewBox="0 0 16 16">
1111
<path d="M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z"/>
1212
</svg>
1313
</a>
1414
<a href="https://rapidez.io/slack" target="_blank" class="text-inactive hover:text-text-neutral">
15-
<span class="sr-only">@lang('Slack')</span>
15+
<span class="sr-only">Slack</span>
1616
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="w-6 h-6" viewBox="0 0 16 16">
1717
<path d="M3.362 10.11c0 .926-.756 1.681-1.681 1.681S0 11.036 0 10.111C0 9.186.756 8.43 1.68 8.43h1.682v1.68zm.846 0c0-.924.756-1.68 1.681-1.68s1.681.756 1.681 1.68v4.21c0 .924-.756 1.68-1.68 1.68a1.685 1.685 0 0 1-1.682-1.68v-4.21zM5.89 3.362c-.926 0-1.682-.756-1.682-1.681S4.964 0 5.89 0s1.68.756 1.68 1.68v1.682H5.89zm0 .846c.924 0 1.68.756 1.68 1.681S6.814 7.57 5.89 7.57H1.68C.757 7.57 0 6.814 0 5.89c0-.926.756-1.682 1.68-1.682h4.21zm6.749 1.682c0-.926.755-1.682 1.68-1.682.925 0 1.681.756 1.681 1.681s-.756 1.681-1.68 1.681h-1.681V5.89zm-.848 0c0 .924-.755 1.68-1.68 1.68A1.685 1.685 0 0 1 8.43 5.89V1.68C8.43.757 9.186 0 10.11 0c.926 0 1.681.756 1.681 1.68v4.21zm-1.681 6.748c.926 0 1.682.756 1.682 1.681S11.036 16 10.11 16s-1.681-.756-1.681-1.68v-1.682h1.68zm0-.847c-.924 0-1.68-.755-1.68-1.68 0-.925.756-1.681 1.68-1.681h4.21c.924 0 1.68.756 1.68 1.68 0 .926-.756 1.681-1.68 1.681h-4.21z"/>
1818
</svg>

resources/views/listing/partials/filter/selected.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div slot-scope="{ activeFilters }" class="flex flex-wrap items-center w-full md:w-auto relative mb-5">
1111
<div class="flex flex-wrap items-baseline justify-between gap-2 w-full border-t py-4">
1212
<div class="text-neutral font-semibold text-base font-sans">
13-
@lang('You have filtered on'):
13+
@lang('You have filtered for:')
1414
</div>
1515
<button v-on:click="clearValues" class="!font-sans text-sm text-inactive transition-all hover:underline">
1616
@lang('Reset filters')

resources/views/product/partials/options/file.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ class="px-0"
2121
<p class="text-sm">@lang('Maximum image height'): <strong>{{ $option->image_size_y }}</strong></p>
2222
@endif
2323
@else
24-
@php(Log::error(__('File upload customizable option is being used, for now you will need to install rapidez/magento2-compadre')))
24+
@php(Log::error('File upload customizable option is being used, for now you will need to install rapidez/magento2-compadre'))
2525
@endif

0 commit comments

Comments
 (0)