won

merge to updated README.md

@@ -36,8 +36,8 @@ @@ -36,8 +36,8 @@
36 - [시스템 지역](#시스템-지역) 36 - [시스템 지역](#시스템-지역)
37 - [테마 변경](#테마-변경) 37 - [테마 변경](#테마-변경)
38 - [GetConnect](#getconnect) 38 - [GetConnect](#getconnect)
39 - - [Default configuration](#default-configuration)  
40 - - [Custom configuration](#custom-configuration) 39 + - [기본 구성](#기본-구성)
  40 + - [커스텀 구성](#커스텀-구성)
41 - [GetPage Middleware](#getpage-middleware) 41 - [GetPage Middleware](#getpage-middleware)
42 - [Priority](#priority) 42 - [Priority](#priority)
43 - [Redirect](#redirect) 43 - [Redirect](#redirect)
@@ -392,10 +392,10 @@ Get.changeTheme(Get.isDarkMode? ThemeData.light(): ThemeData.dark()); @@ -392,10 +392,10 @@ Get.changeTheme(Get.isDarkMode? ThemeData.light(): ThemeData.dark());
392 `.darkmode`가 활성활 될때 _light theme_ 로 바뀔것 이고 _light theme_ 가 활성화되면 _dark theme_ 로 변경될 것입니다. 392 `.darkmode`가 활성활 될때 _light theme_ 로 바뀔것 이고 _light theme_ 가 활성화되면 _dark theme_ 로 변경될 것입니다.
393 393
394 ## GetConnect 394 ## GetConnect
395 -GetConnect is an easy way to communicate from your back to your front with http or websockets 395 +GetConnect는 http나 websockets으로 프론트와 백엔드의 통신을 위한 쉬운 방법입니다.
396 396
397 -### Default configuration  
398 -You can simply extend GetConnect and use the GET/POST/PUT/DELETE/SOCKET methods to communicate with your Rest API or websockets. 397 +### 기본 구성
  398 +GetConnect를 간단하게 확장하고 Rest API나 websockets의 GET/POST/PUT/DELETE/SOCKET 메서드를 사용할 수 있습니다.
399 399
400 ```dart 400 ```dart
401 class UserProvider extends GetConnect { 401 class UserProvider extends GetConnect {
@@ -417,28 +417,27 @@ class UserProvider extends GetConnect { @@ -417,28 +417,27 @@ class UserProvider extends GetConnect {
417 } 417 }
418 } 418 }
419 ``` 419 ```
420 -### Custom configuration  
421 -GetConnect is highly customizable You can define base Url, as answer modifiers, as Requests modifiers, define an authenticator, and even the number of attempts in which it will try to authenticate itself, in addition to giving the possibility to define a standard decoder that will transform all your requests into your Models without any additional configuration. 420 +### 커스텀 구성
  421 +GetConnect는 고도로 커스텀화 할 수 있습니다. base Url을 정의하고 응답자 및 요청을 수정하고 인증자를 정의할 수 있습니다. 그리고 인증 횟수까지 정의 할 수 있습니다. 더해서 추가 구성없이 모델로 응답을 변형시킬 수 있는 표준 디코더 정의도 가능합니다.
422 422
423 ```dart 423 ```dart
424 class HomeProvider extends GetConnect { 424 class HomeProvider extends GetConnect {
425 @override 425 @override
426 void onInit() { 426 void onInit() {
427 - // All request will pass to jsonEncode so CasesModel.fromJson() 427 + // 모든 요청은 jsonEncode로 CasesModel.fromJson()를 거칩니다.
428 httpClient.defaultDecoder = CasesModel.fromJson; 428 httpClient.defaultDecoder = CasesModel.fromJson;
429 httpClient.baseUrl = 'https://api.covid19api.com'; 429 httpClient.baseUrl = 'https://api.covid19api.com';
430 - // baseUrl = 'https://api.covid19api.com'; // It define baseUrl to  
431 - // Http and websockets if used with no [httpClient] instance 430 + // baseUrl = 'https://api.covid19api.com'; // [httpClient] 인스턴트 없이 사용하는경우 Http와 websockets의 baseUrl 정의
432 431
433 - // It's will attach 'apikey' property on header from all requests 432 + // 모든 요청의 헤더에 'apikey' 속성을 첨부합니다.
434 httpClient.addRequestModifier((request) { 433 httpClient.addRequestModifier((request) {
435 request.headers['apikey'] = '12345678'; 434 request.headers['apikey'] = '12345678';
436 return request; 435 return request;
437 }); 436 });
438 437
439 - // Even if the server sends data from the country "Brazil",  
440 - // it will never be displayed to users, because you remove  
441 - // that data from the response, even before the response is delivered 438 + // 서버가 "Brazil"이란 데이터를 보내더라도
  439 + // 응답이 전달되기 전에 응답의 데이터를 지우기 때문에
  440 + // 사용자에게 표시되지 않을 것입니다.
442 httpClient.addResponseModifier<CasesModel>((request, response) { 441 httpClient.addResponseModifier<CasesModel>((request, response) {
443 CasesModel model = response.body; 442 CasesModel model = response.body;
444 if (model.countries.contains('Brazil')) { 443 if (model.countries.contains('Brazil')) {
@@ -449,13 +448,13 @@ class HomeProvider extends GetConnect { @@ -449,13 +448,13 @@ class HomeProvider extends GetConnect {
449 httpClient.addAuthenticator((request) async { 448 httpClient.addAuthenticator((request) async {
450 final response = await get("http://yourapi/token"); 449 final response = await get("http://yourapi/token");
451 final token = response.body['token']; 450 final token = response.body['token'];
452 - // Set the header 451 + // 헤더 설정
453 request.headers['Authorization'] = "$token"; 452 request.headers['Authorization'] = "$token";
454 return request; 453 return request;
455 }); 454 });
456 455
457 - //Autenticator will be called 3 times if HttpStatus is  
458 - //HttpStatus.unauthorized 456 + // 인증자가 HttpStatus가 HttpStatus.unauthorized이면
  457 + // 3번 호출됩니다.
459 httpClient.maxAuthRetries = 3; 458 httpClient.maxAuthRetries = 3;
460 } 459 }
461 } 460 }
@@ -467,13 +466,13 @@ class HomeProvider extends GetConnect { @@ -467,13 +466,13 @@ class HomeProvider extends GetConnect {
467 466
468 ## GetPage Middleware 467 ## GetPage Middleware
469 468
470 -The GetPage has now new property that takes a list of GetMiddleWare and run them in the specific order. 469 +GetPage는 GetMiddleWare의 목록을 특정 순서로 실행하는 새로운 프로퍼티를 가집니다.
471 470
472 -**Note**: When GetPage has a Middlewares, all the children of this page will have the same middlewares automatically. 471 +**주석**: GetPage가 Middleware를 가질때 페이지의 모든 하위는 같은 Middleware를 자동적으로 가지게 됩니다.
473 472
474 ### Priority 473 ### Priority
475 474
476 -The Order of the Middlewares to run can pe set by the priority in the GetMiddleware. 475 +Middleware의 실행 순서는 GetMiddleware안의 priority에 따라서 설정할 수 있습니다.
477 476
478 ```dart 477 ```dart
479 final middlewares = [ 478 final middlewares = [
@@ -483,11 +482,11 @@ final middlewares = [ @@ -483,11 +482,11 @@ final middlewares = [
483 GetMiddleware(priority: -8), 482 GetMiddleware(priority: -8),
484 ]; 483 ];
485 ``` 484 ```
486 -those middlewares will be run in this order **-8 => 2 => 4 => 5** 485 +이 Middleware는 다음 순서로 실행됩니다. **-8 => 2 => 4 => 5**
487 486
488 ### Redirect 487 ### Redirect
489 488
490 -This function will be called when the page of the called route is being searched for. It takes RouteSettings as a result to redirect to. Or give it null and there will be no redirecting. 489 +이 함수는 호출된 라우트의 페이지를 검색할때 호출됩니다. 리다이렉트한 결과로 RouteSettings을 사용합니다. 또는 null을 주면 리다이렉트 하지 않습니다.
491 490
492 ```dart 491 ```dart
493 GetPage redirect( ) { 492 GetPage redirect( ) {
@@ -498,8 +497,8 @@ GetPage redirect( ) { @@ -498,8 +497,8 @@ GetPage redirect( ) {
498 497
499 ### onPageCalled 498 ### onPageCalled
500 499
501 -This function will be called when this Page is called before anything created  
502 -you can use it to change something about the page or give it new page 500 +이 함수는 생성되지 않은 페이지가 호출될 때 호출됩니다.
  501 +페이지에 대한 어떤것을 변경하는데 사용하거나 새로운 페이지를 줄 수 있습니다.
503 502
504 ```dart 503 ```dart
505 GetPage onPageCalled(GetPage page) { 504 GetPage onPageCalled(GetPage page) {
@@ -510,8 +509,8 @@ GetPage onPageCalled(GetPage page) { @@ -510,8 +509,8 @@ GetPage onPageCalled(GetPage page) {
510 509
511 ### OnBindingsStart 510 ### OnBindingsStart
512 511
513 -This function will be called right before the Bindings are initialize.  
514 -Here you can change Bindings for this page. 512 +이 함수는 Bindings가 초기화되기 바로 직전에 호출됩니다.
  513 +여기에서 이 페이지를 위해 Bindings을 변경할 수 있습니다.
515 514
516 ```dart 515 ```dart
517 List<Bindings> onBindingsStart(List<Bindings> bindings) { 516 List<Bindings> onBindingsStart(List<Bindings> bindings) {
@@ -525,8 +524,8 @@ List<Bindings> onBindingsStart(List<Bindings> bindings) { @@ -525,8 +524,8 @@ List<Bindings> onBindingsStart(List<Bindings> bindings) {
525 524
526 ### OnPageBuildStart 525 ### OnPageBuildStart
527 526
528 -This function will be called right after the Bindings are initialize.  
529 -Here you can do something after that you created the bindings and before creating the page widget. 527 +이 함수는 Bindings가 초기화된 직후에 호출됩니다.
  528 +여기에서 bindings를 생성한 후 페이지 위젯을 생성하기 전에 무엇이든 할 수 있습니다.
530 529
531 ```dart 530 ```dart
532 GetPageBuilder onPageBuildStart(GetPageBuilder page) { 531 GetPageBuilder onPageBuildStart(GetPageBuilder page) {
@@ -537,11 +536,11 @@ GetPageBuilder onPageBuildStart(GetPageBuilder page) { @@ -537,11 +536,11 @@ GetPageBuilder onPageBuildStart(GetPageBuilder page) {
537 536
538 ### OnPageBuilt 537 ### OnPageBuilt
539 538
540 -This function will be called right after the GetPage.page function is called and will give you the result of the function. and take the widget that will be showed. 539 +이 함수는 GetPage.page 함수가 호출된 직후에 호출며 함수의 결과를 제공합니다. 그리고 표시될 위젯을 가져옵니다.
541 540
542 ### OnPageDispose 541 ### OnPageDispose
543 542
544 -This function will be called right after disposing all the related objects (Controllers, views, ...) of the page. 543 +이 함수는 페이지의 연관된 모든 오브젝트들(Controllers, views, ...)이 해제된 직후에 호출됩니다.
545 544
546 ## 기타 고급 API 545 ## 기타 고급 API
547 546