Skip to content

Commit

Permalink
Merge pull request #42 from szepeviktor/typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
iamgergo authored Mar 22, 2024
2 parents 26f3b6c + 2de8c6d commit f306734
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: composer install --no-ansi --no-interaction --no-scripts --prefer-dist
- uses: actions/checkout@v4
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: mbstring, dom, fileinfo
- name: Install Dependencies
run: composer update --no-ansi --no-interaction --no-scripts --prefer-dist
- name: Run Test
run: vendor/bin/phpunit
run: composer run test
29 changes: 29 additions & 0 deletions .github/workflows/spelling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow

name: "Spelling"

on:
pull_request: null
push:
branches:
- "master"

permissions:
contents: "read"

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

jobs:
typos_check:
name: "文A Typos check"
runs-on: "ubuntu-22.04"
timeout-minutes: 1
steps:
-
name: "Checkout repository"
uses: "actions/checkout@v4"
-
name: "Search for misspellings"
uses: "crate-ci/typos@master"
10 changes: 10 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[files]
extend-exclude = [
".git/",
]
ignore-hidden = false

[default.extend-words]
"encrypter" = "encrypter"
"invokable" = "invokable"
"responsable" = "responsable"
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
## v0.5.1 (2018-05-29)
### Added
- new test for custom translations' object key
### Chaged
### Changed
- JS regex for object extracting
- trimming quotes from translations' object key

Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ Let's say we have the following translation line:
'attempts' => 'Be careful, you have :attempts attempt left.|You still have :attempts attempts left.',
]
```
> Note, the plural and the singular verions are separated with the `|` character!
> [!NOTE]
> The plural and the singular versions are separated by the `|` character!
```js
translator.trans_choice('auth.attempts', 1, { attempts: 'only one' });
Expand Down Expand Up @@ -191,7 +192,7 @@ Behind the scenes the proper translations will be rendered, if it exists.

## Fallback locales

If there are no translations is not available in the current langauge,
If there are no translations is not available in the current language,
the package will look for the fallback locale's translations.
If there is no translations available in the fallback locale, the missing translations won't appear.

Expand Down

0 comments on commit f306734

Please sign in to comment.