Skip to content

Commit

Permalink
💫 Correções de traduções
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashu11-A committed Mar 3, 2024
1 parent ae406d7 commit 0b0d1cb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"xterm-addon-search": "^0.9.0",
"xterm-addon-search-bar": "^0.2.0",
"xterm-addon-web-links": "^0.6.0",
"yup": "^0.29.1"
"yup": "^0.29.1",
"yup-locales": "^1.2.21"
},
"devDependencies": {
"@babel/core": "^7.12.1",
Expand Down
4 changes: 3 additions & 1 deletion resources/scripts/components/store/CreateContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import * as Icon from 'react-feather';
import { Form, Formik } from 'formik';
import useFlash from '@/plugins/useFlash';
import { useStoreState } from 'easy-peasy';
import { number, object, string } from 'yup';
import { number, object, string, setLocale } from 'yup';
import { pt } from 'yup-locales';
import Field from '@/components/elements/Field';
import Select from '@/components/elements/Select';
import { Egg, getEggs } from '@/api/store/getEggs';
Expand Down Expand Up @@ -61,6 +62,7 @@ export default () => {
const [nests, setNests] = useState<Nest[]>();
const [node, setNode] = useState<number>(0);
const [nodes, setNodes] = useState<Node[]>();
setLocale(pt);

useEffect(() => {
clearFlashes();
Expand Down
4 changes: 2 additions & 2 deletions tests/Traits/Http/IntegrationJsonRequestAssertions.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function assertNotFoundJson(TestResponse $response): void
[
'code' => 'NotFoundHttpException',
'status' => '404',
'detail' => 'The requested resource could not be found on the server.',
'detail' => 'O recurso solicitado não pôde ser encontrado no servidor.',
],
],
], true);
Expand All @@ -39,7 +39,7 @@ public function assertAccessDeniedJson(TestResponse $response): void
[
'code' => 'AccessDeniedHttpException',
'status' => '403',
'detail' => 'This action is unauthorized.',
'detail' => 'Essa ação não está autorizada.',
],
],
], true);
Expand Down
2 changes: 1 addition & 1 deletion tests/Traits/Http/RequestMockHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected function buildRequestMock(): void
{
$this->request = m::mock($this->requestMockClass);
if (!$this->request instanceof Request) {
throw new \InvalidArgumentException('Request mock class must be an instance of ' . Request::class . ' when mocked.');
throw new \InvalidArgumentException('A classe mock da requisição precisa ser simulada utilizando o método' . Request::class .);
}

$this->request->attributes = new ParameterBag();
Expand Down
7 changes: 6 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9759,6 +9759,11 @@ yocto-queue@^0.1.0:
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==

yup-locales@^1.2.21:
version "1.2.21"
resolved "https://registry.yarnpkg.com/yup-locales/-/yup-locales-1.2.21.tgz#e4d77c43322b58ad83cc4ddde6ac2fdca60d0f36"
integrity sha512-yEDi4eeNKdYH9Gi2H6Xtpi7z0u4i8Mm5g2rwLMrkCTaiXBkbSOW938J71ZArGS4R7rV0tPBlk0Iner5OaVhqVg==

yup@^0.29.1:
version "0.29.1"
resolved "https://registry.yarnpkg.com/yup/-/yup-0.29.1.tgz#35d25aab470a0c3950f66040ba0ff4b1b6efe0d9"
Expand All @@ -9770,4 +9775,4 @@ yup@^0.29.1:
lodash-es "^4.17.11"
property-expr "^2.0.2"
synchronous-promise "^2.0.10"
toposort "^2.0.2"
toposort "^2.0.2"

0 comments on commit 0b0d1cb

Please sign in to comment.