Skip to content

Commit

Permalink
feat(i18n): add support for Korean locale
Browse files Browse the repository at this point in the history
  • Loading branch information
phungmanhcuong authored and cysjonathan committed Dec 13, 2024
1 parent a55e03e commit cb35cdd
Show file tree
Hide file tree
Showing 151 changed files with 9,703 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,22 @@ jobs:
name: Check for missing translations (Mandarin)
command: bundle exec i18n-tasks missing --locales zh

i18n_ko:
executor: ruby_with_postgres

steps:
- checkout
- rehydrate_ruby_deps
- setup_db

- run:
name: Check for unused translations (Korean)
command: bundle exec i18n-tasks unused --locales ko

- run:
name: Check for missing translations (Korean)
command: bundle exec i18n-tasks missing --locales ko

workflows:
build_and_test_and_lint:
jobs:
Expand All @@ -427,6 +443,7 @@ workflows:
- build_client
- i18n_en
- i18n_zh
- i18n_ko
- factorybot_lint
- test_rspec:
requires:
Expand Down
1 change: 1 addition & 0 deletions client/app/lib/constants/sharedConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const STAFF_ROLES: Record<StaffRoles, string> = staffRoles;
export const AVAILABLE_LOCALES: { [key in Locale]: string } = {
en: 'English',
zh: '中文',
ko: '한국어',
};

export const SAVING_STATUS = mirrorCreator([
Expand Down
2 changes: 1 addition & 1 deletion client/app/types/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export interface AdminStats {
instancesCount: number;
}

export type Locale = 'en' | 'zh';
export type Locale = 'en' | 'zh' | 'ko';

export interface ProfileData {
id: string;
Expand Down
Loading

0 comments on commit cb35cdd

Please sign in to comment.