Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #42

Merged
merged 2 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ 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 with the `|` character!
iamgergo marked this conversation as resolved.
Show resolved Hide resolved

```js
translator.trans_choice('auth.attempts', 1, { attempts: 'only one' });
Expand Down Expand Up @@ -191,7 +191,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