-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat(locale): add en_HK locale #2083
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 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e516643
feat(locale) - add en_HK locale
matthewmayer 3421a73
Merge branch 'next' into locale/en_hk_2
matthewmayer e7fbe90
export default null
matthewmayer c8889bb
Merge branch 'next' into locale/en_hk_2
ST-DDT 444a231
add postcode_by_state
matthewmayer 9aedcd6
update docs
matthewmayer 358304a
Merge branch 'next' into locale/en_hk_2
ST-DDT 437ef21
Merge branch 'next' into locale/en_hk_2
ST-DDT 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| /* | ||
| * 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 en_HK from '../locales/en_HK'; | ||
|
|
||
| export const faker = new Faker({ | ||
| locale: [en_HK, 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,12 @@ | ||
| /* | ||
| * This file is automatically generated. | ||
| * Run 'pnpm run generate:locales' to update. | ||
| */ | ||
| import type { CompanyDefinitions } from '../../..'; | ||
| import suffix from './suffix'; | ||
|
|
||
| const company: CompanyDefinitions = { | ||
| suffix, | ||
| }; | ||
|
|
||
| export default company; |
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 @@ | ||
| export default ['Ltd.', 'Co. Ltd.']; |
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,22 @@ | ||
| /* | ||
| * This file is automatically generated. | ||
| * Run 'pnpm run generate:locales' to update. | ||
| */ | ||
| import type { LocaleDefinition } from '../..'; | ||
| import company from './company'; | ||
| import internet from './internet'; | ||
| import location from './location'; | ||
| import metadata from './metadata'; | ||
| import person from './person'; | ||
| import phone_number from './phone_number'; | ||
|
|
||
| const en_HK: LocaleDefinition = { | ||
| company, | ||
| internet, | ||
| location, | ||
| metadata, | ||
| person, | ||
| phone_number, | ||
| }; | ||
|
|
||
| export default en_HK; |
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 @@ | ||
| export default ['com', 'hk', 'com.hk', 'org.hk']; |
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,12 @@ | ||
| /* | ||
| * This file is automatically generated. | ||
| * Run 'pnpm run generate:locales' to update. | ||
| */ | ||
| import type { InternetDefinitions } from '../../..'; | ||
| import domain_suffix from './domain_suffix'; | ||
|
|
||
| const internet: InternetDefinitions = { | ||
| domain_suffix, | ||
| }; | ||
|
|
||
| export default internet; |
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 @@ | ||
| export default ['###', '##', '#']; |
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,106 @@ | ||
| export default [ | ||
| 'Aberdeen', | ||
| 'Ap Lei Chau', | ||
| 'Causeway Bay', | ||
| 'Chai Wan', | ||
| 'Cheung Chau', | ||
| 'Cheung Fat', | ||
| 'Cheung Sha Wan', | ||
| 'Choi Hung Chuen', | ||
| 'Choi Ming', | ||
| 'Chuk Yuen', | ||
| 'Cyberport', | ||
| 'Discovery Bay', | ||
| 'Fairview Park', | ||
| 'Fanling', | ||
| 'Fo Tan', | ||
| 'Fu Shan', | ||
| 'Fu Shin', | ||
| 'Fu Tai', | ||
| 'Happy Valley', | ||
| 'Heng Fa Chuen', | ||
| 'Heng On', | ||
| 'Hin Keng', | ||
| 'Ho Man Tin', | ||
| 'Hung Hom Bay', | ||
| 'Kam Tai', | ||
| 'Kam Tin', | ||
| 'Kennedy Town', | ||
| 'Kowloon', | ||
| 'Kowloon Bay', | ||
| 'Kowloon Central', | ||
| 'Kowloon City', | ||
| 'Kowloon East', | ||
| 'Kwai Chung', | ||
| 'Kwai Fong', | ||
| 'Kwai Shing', | ||
| 'Kwong Yuen', | ||
| 'Kwun Tong', | ||
| 'Lai King', | ||
| 'Lai Kok', | ||
| 'Lam Tin', | ||
| 'Lamma', | ||
| 'Lee On', | ||
| 'Lei Muk Shue', | ||
| 'Lei Tung', | ||
| 'Leung King', | ||
| 'Lok Fu', | ||
| 'Ma On Shan', | ||
| 'Mei Foo Sun Chuen', | ||
| 'Mei Lam', | ||
| 'Mong Kok', | ||
| 'Mui Wo', | ||
| 'Ngau Chi Wan', | ||
| 'Ngau Tau Kok', | ||
| 'Oi Man', | ||
| 'Peak', | ||
| 'Peng Chau', | ||
| 'Po Lam', | ||
| 'Pok Fu Lam', | ||
| 'Repulse Bay', | ||
| 'Sai Kung', | ||
| 'Sai Ying Pun', | ||
| 'San Tin', | ||
| 'Sau Mau Ping', | ||
| 'Sha Kok', | ||
| 'Sha Tau Kok', | ||
| 'Sha Tin', | ||
| 'Sham Shui Po', | ||
| 'Shau Kei Wan', | ||
| 'Shek Kip Mei', | ||
| 'Shek Lei', | ||
| 'Shek Wai Kok', | ||
| 'Shek Wu Hui', | ||
| 'Sheung Tak', | ||
| 'Sheung Wan', | ||
| 'Shun Lee', | ||
| 'Siu Sai Wan', | ||
| 'So Uk', | ||
| 'Stanley', | ||
| 'Sun Chui', | ||
| 'Tai Hing', | ||
| 'Tai Kok Tsui', | ||
| 'Tai Koo Shing', | ||
| 'Tai O', | ||
| 'Tai Po', | ||
| 'Tin Yiu', | ||
| 'Tin Yuet', | ||
| 'To Kwa Wan', | ||
| 'Tsat Tsz Mui', | ||
| 'Tseung Kwan O', | ||
| 'Tsim Sha Tsui', | ||
| 'Tsing Yi', | ||
| 'Tsuen Wan', | ||
| 'Tsz Wan Shan', | ||
| 'Tuen Mun', | ||
| 'Tung Chung', | ||
| 'Wah Fu', | ||
| 'Wah Ming', | ||
| 'Wan Chai', | ||
| 'Wan Tau Tong', | ||
| 'Wo Che', | ||
| 'Wong Tai Sin', | ||
| 'Yau Tong', | ||
| 'Yau Yat Tsuen', | ||
| 'Yuen Long', | ||
| ]; | ||
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 @@ | ||
| export default ['Hong Kong']; |
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,32 @@ | ||
| /* | ||
| * This file is automatically generated. | ||
| * Run 'pnpm run generate:locales' to update. | ||
| */ | ||
| import type { LocationDefinitions } from '../../..'; | ||
| import building_number from './building_number'; | ||
| import city from './city'; | ||
| import default_country from './default_country'; | ||
| import postcode from './postcode'; | ||
| import state from './state'; | ||
| import state_abbr from './state_abbr'; | ||
| import street_cantonese_part from './street_cantonese_part'; | ||
| import street_english_part from './street_english_part'; | ||
| import street_pattern from './street_pattern'; | ||
| import street_prefix from './street_prefix'; | ||
| import street_suffix from './street_suffix'; | ||
|
|
||
| const location: LocationDefinitions = { | ||
| building_number, | ||
| city, | ||
| default_country, | ||
| postcode, | ||
|
ST-DDT marked this conversation as resolved.
|
||
| state, | ||
| state_abbr, | ||
| street_cantonese_part, | ||
| street_english_part, | ||
| street_pattern, | ||
| street_prefix, | ||
| street_suffix, | ||
| }; | ||
|
|
||
| export default location; | ||
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,2 @@ | ||
| // https://www.hongkongpost.hk/en/about_us/tips/postcode/index.html | ||
| export default null; |
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 @@ | ||
| export default ['Hong Kong Island', 'Kowloon', 'New Territories']; |
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 @@ | ||
| export default ['HK', 'KLN', 'NT']; |
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,80 @@ | ||
| export default [ | ||
| 'Wan', | ||
| 'On', | ||
| 'Tai', | ||
| 'Man', | ||
| 'Fung', | ||
| 'Cheung', | ||
| 'Tung', | ||
| 'Hing', | ||
| 'Po', | ||
| 'Wah', | ||
| 'Tak', | ||
| 'Shing', | ||
| 'Lung', | ||
| 'Yuen', | ||
| 'Wing', | ||
| 'Hong', | ||
| 'Yip', | ||
| 'King', | ||
| 'Kwong', | ||
| 'Hoi', | ||
| 'Ming', | ||
| 'Wa', | ||
| 'Lok', | ||
| 'Yan', | ||
| 'Wai', | ||
| 'Chi', | ||
| 'Fuk', | ||
| 'Lai', | ||
| 'Lee', | ||
| 'Fu', | ||
| 'Tin', | ||
| 'Kai', | ||
| 'Sai', | ||
| 'Shun', | ||
| 'Ping', | ||
| 'Yee', | ||
| 'Wo', | ||
| 'Chung', | ||
| 'Hang', | ||
| 'Ning', | ||
| 'Wong', | ||
| 'Yue', | ||
| 'Choi', | ||
| 'Wang', | ||
| 'Ching', | ||
| 'Sau', | ||
| 'Shan', | ||
| 'Tsui', | ||
| 'Tau', | ||
| 'Sheung', | ||
| 'Lam', | ||
| 'Fat', | ||
| 'Hung', | ||
| 'Chuk', | ||
| 'Shek', | ||
| 'Kok', | ||
| 'Cheong', | ||
| 'Fong', | ||
| 'Nam', | ||
| 'Lei', | ||
| 'Yu', | ||
| 'Mei', | ||
| 'Pak', | ||
| 'Fai', | ||
| 'Kwai', | ||
| 'Sing', | ||
| 'Kung', | ||
| 'Chau', | ||
| 'Tong', | ||
| 'San', | ||
| 'Chiu', | ||
| 'Chun', | ||
| 'Yin', | ||
| 'Yuk', | ||
| 'Ting', | ||
| 'Kam', | ||
| 'Lun', | ||
| 'Oi', | ||
| ]; |
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,56 @@ | ||
| export default [ | ||
| 'Aldrich', | ||
| 'Arran', | ||
| 'Austin', | ||
| 'Baker', | ||
| 'Battery', | ||
| 'Bel-Air', | ||
| 'Bonham', | ||
| 'Boundary', | ||
| 'Bowen', | ||
| 'Breezy', | ||
| 'Caine', | ||
| 'Cameron', | ||
| 'Canal', | ||
| 'Cape', | ||
| 'Chatham', | ||
| 'Church', | ||
| 'College', | ||
| 'Comet', | ||
| 'Connaught', | ||
| 'Cornwall', | ||
| "Cox's", | ||
| 'Cross', | ||
| 'Douglas', | ||
| 'Dragon', | ||
| 'Eastern', | ||
| 'Electric', | ||
| 'Expo', | ||
| 'Findlay', | ||
| 'First', | ||
| 'Garden', | ||
| 'Gillies', | ||
| 'Greig', | ||
| 'Hospital', | ||
| "Jardine's", | ||
| 'Jordan', | ||
| 'Kennedy', | ||
| 'Kimberley', | ||
| 'Leighton', | ||
| 'Maidstone', | ||
| 'Maple', | ||
| 'Marsh', | ||
| 'Monmouth', | ||
| 'Oaklands', | ||
| 'Peel', | ||
| 'Poplar', | ||
| 'Rose', | ||
| 'Second', | ||
| 'Seymour', | ||
| 'Stewart', | ||
| 'Third', | ||
| 'Village', | ||
| 'Water', | ||
| 'Waterloo', | ||
| 'Wylie', | ||
| ]; |
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,8 @@ | ||
| // Hong Kong has a mix of street names | ||
| // Some are English, for example "Argyle Street" | ||
| // Some are Cantonese, usually with two syllables and an English suffix, e.g. "Choi Wan Road" | ||
| // Real life examples: https://geographic.org/streetview/hong_kong/index.html | ||
| export default [ | ||
| '{{location.street_english_part}} {{location.street_suffix}}', | ||
| '{{location.street_cantonese_part}} {{location.street_cantonese_part}} {{location.street_suffix}}', | ||
| ]; |
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 @@ | ||
| export default null; |
Oops, something went wrong.
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.