-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05dab08
commit 5a156a2
Showing
10 changed files
with
179 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* DO NOT EDIT, file generated by nestjs-i18n */ | ||
|
||
/* eslint-disable */ | ||
/* prettier-ignore */ | ||
import { Path } from "nestjs-i18n"; | ||
/* prettier-ignore */ | ||
export type I18nTranslations = { | ||
"core": { | ||
"not_found_id": string; | ||
"not_found_slug": string; | ||
"the_given_slug_is_exists_before": string; | ||
"dont_access_to_this_file": string; | ||
"validation": { | ||
"is_not_empty": string; | ||
}; | ||
"success": string; | ||
}; | ||
}; | ||
/* prettier-ignore */ | ||
export type I18nPath = Path<I18nTranslations>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { ExecutionContext, Inject, Injectable, Scope } from '@nestjs/common'; | ||
import { I18nResolver } from 'nestjs-i18n'; | ||
|
||
@Injectable() | ||
export class AppLanguageResolver implements I18nResolver { | ||
constructor() {} | ||
|
||
resolve( | ||
context: ExecutionContext, | ||
): Promise<string | string[] | undefined> | string | string[] | undefined { | ||
return 'fa'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"not_found_id": "the item with this given id not founded !", | ||
"not_found_slug": "the item with this given slug not founded !", | ||
"the_given_slug_is_exists_before": "the item with this given slug is exists before", | ||
"dont_access_to_this_file": "You don't have access to this file !", | ||
"validation": { | ||
"is_not_empty": "{property} couldn't be empty" | ||
}, | ||
"success": "success" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"not_found_id": "آیتم مورد نظر توسط شناسه ارسال شده یافت نشد", | ||
"not_found_slug": "آیتم مورد نظر توسط جداکننده یا لینک مورد نظر یافت نشد", | ||
"dont_access_to_this_file": "شما دسترسی به این فایل را ندارید", | ||
"validation": { | ||
"is_not_empty": "{property} نمیتواند خالی باشد" | ||
}, | ||
"success": "با موفقیت انجام شد" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.