-
-
Notifications
You must be signed in to change notification settings - Fork 975
feat(locale): add Tamil language support #3468
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
216d0b0
feat(locale): add Tamil language support
Pradeepg2445 9351b1f
Merge remote-tracking branch 'upstream/next' into next
Pradeepg2445 3ebae00
chore: apply preflight formatting
Pradeepg2445 6c471b6
fix(locale): rename to ta_IN and limit to date module per review
Pradeepg2445 8898e24
chore(test): sort script list alphabetically
Pradeepg2445 dfe2853
Merge branch 'next' into next
xDivisionByZerox File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,25 @@ | ||
/* | ||
* This file is automatically generated. | ||
* Run 'pnpm run generate:locales' to update. | ||
*/ | ||
|
||
import { Faker } from '../faker'; | ||
import base from '../locales/base'; | ||
import en from '../locales/en'; | ||
import ta_IN from '../locales/ta_IN'; | ||
|
||
/** | ||
* The faker instance for the `ta_IN` locale. | ||
* | ||
* - Language: Tamil (India) | ||
* - Endonym: தமிழ் (இந்தியா) | ||
* | ||
* This instance uses the following locales internally (in descending precedence): | ||
* | ||
* - `ta_IN` | ||
* - `en` | ||
* - `base` | ||
*/ | ||
export const faker = new Faker({ | ||
locale: [ta_IN, en, base], | ||
}); |
This file contains hidden or 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 hidden or 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,14 @@ | ||
/* | ||
* This file is automatically generated. | ||
* Run 'pnpm run generate:locales' to update. | ||
*/ | ||
import type { DateDefinition } from '../../..'; | ||
import month from './month'; | ||
import weekday from './weekday'; | ||
|
||
const date: DateDefinition = { | ||
month, | ||
weekday, | ||
}; | ||
|
||
export default date; |
This file contains hidden or 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,30 @@ | ||
export default { | ||
wide: [ | ||
'ஆடி', | ||
'ஆனி', | ||
'ஆவணி', | ||
'ஐப்பசி', | ||
'கார்த்திகை', | ||
'சித்திரை', | ||
'தை', | ||
'பங்குனி', | ||
'புரட்டாசி', | ||
'மாசி', | ||
'மார்கழி', | ||
'வைகாசி', | ||
], | ||
abbr: [ | ||
'ஆடி', | ||
'ஆனி', | ||
'ஆவ', | ||
'ஐப்', | ||
'கார்', | ||
'சித்', | ||
'தை', | ||
'பங்', | ||
'புர', | ||
'மாசி', | ||
'மார்', | ||
'வைகா', | ||
], | ||
}; |
This file contains hidden or 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,4 @@ | ||
export default { | ||
wide: ['சனி', 'செவ்வாய்', 'ஞாயிறு', 'திங்கள்', 'புதன்', 'வியாழன்', 'வெள்ளி'], | ||
abbr: ['ச', 'செ', 'ஞா', 'தி', 'பு', 'வி', 'வெ'], | ||
}; |
This file contains hidden or 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 @@ | ||
/* | ||
* This file is automatically generated. | ||
* Run 'pnpm run generate:locales' to update. | ||
*/ | ||
import type { LocaleDefinition } from '../..'; | ||
import date from './date'; | ||
import metadata from './metadata'; | ||
|
||
/** | ||
* The locale data for the `ta_IN` locale. | ||
* | ||
* - Language: Tamil (India) | ||
* - Endonym: தமிழ் (இந்தியா) | ||
*/ | ||
const ta_IN: LocaleDefinition = { | ||
date, | ||
metadata, | ||
}; | ||
|
||
export default ta_IN; |
This file contains hidden or 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 type { PreBuiltMetadataDefinitionForCountry } from '../../definitions/metadata'; | ||
|
||
const metadata: PreBuiltMetadataDefinitionForCountry = { | ||
title: 'Tamil (India)', | ||
code: 'ta_IN', | ||
language: 'ta', | ||
country: 'IN', | ||
endonym: 'தமிழ் (இந்தியா)', | ||
dir: 'ltr', | ||
script: 'Taml', | ||
}; | ||
|
||
export default metadata; |
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.