Skip to content

Commit

Permalink
๐ŸŒ Add Korean language support (fluttercandies#494)
Browse files Browse the repository at this point in the history
Co-authored-by: Maรซl <[email protected]>
  • Loading branch information
LIMMIHEE and LeGoffMael authored Sep 27, 2023
1 parent ac9e622 commit 74ce214
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 0 deletions.
96 changes: 96 additions & 0 deletions lib/src/delegates/asset_picker_text_delegate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const List<AssetPickerTextDelegate> assetPickerTextDelegates =
FrenchAssetPickerTextDelegate(),
VietnameseAssetPickerTextDelegate(),
TurkishAssetPickerTextDelegate(),
KoreanAssetPickerTextDelegate(),
];

/// Obtain the text delegate from the given locale.
Expand Down Expand Up @@ -1032,3 +1033,98 @@ class TurkishAssetPickerTextDelegate extends AssetPickerTextDelegate {
@override
String get sUnitAssetCountLabel => 'Sayฤฑ';
}

/// [AssetPickerTextDelegate] implements with Korean.
/// ํ•œ๊ตญ์–ด ํ˜„์ง€ํ™”
class KoreanAssetPickerTextDelegate extends AssetPickerTextDelegate {
const KoreanAssetPickerTextDelegate();

@override
String get languageCode => 'ko';

@override
String get confirm => 'ํ™•์ธ';

@override
String get cancel => '์ทจ์†Œ';

@override
String get edit => 'ํŽธ์ง‘';

@override
String get gifIndicator => 'GIF';

@override
String get loadFailed => '๋ถˆ๋Ÿฌ์˜ค๊ธฐ ์‹คํŒจ';

@override
String get original => '์›๋ณธ';

@override
String get preview => '๋ฏธ๋ฆฌ๋ณด๊ธฐ';

@override
String get select => '์„ ํƒ';

@override
String get emptyList => '๋นˆ ๋ชฉ๋ก';

@override
String get unSupportedAssetType => '์ง€์›ํ•˜์ง€ ์•Š๋Š” HEIC ๋ฏธ๋””์–ด ์œ ํ˜•.';

@override
String get unableToAccessAll => '๊ธฐ๊ธฐ์˜ ๋ชจ๋“  ๋ฏธ๋””์–ด์— ์ ‘๊ทผํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.';

@override
String get viewingLimitedAssetsTip => '์ ‘๊ทผ ๊ฐ€๋Šฅํ•œ ๋ฏธ๋””์–ด๊ณผ ์•จ๋ฒ”๋งŒ ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.';

@override
String get changeAccessibleLimitedAssets => '์ ‘๊ทผ ๊ฐ€๋Šฅํ•œ ๋ฏธ๋””์–ด์„ ์—…๋ฐ์ดํŠธํ•˜๋ ค๋ฉด ํด๋ฆญํ•˜์„ธ์š”.';

@override
String get accessAllTip => '์•ฑ์ด ๊ธฐ๊ธฐ์˜ ์ผ๋ถ€ ๋ฏธ๋””์–ด์—๋งŒ ์ ‘๊ทผํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. '
'์‹œ์Šคํ…œ ์„ค์ •์œผ๋กœ ์ด๋™ํ•˜์—ฌ ์•ฑ์ด ๊ธฐ๊ธฐ์˜ ๋ชจ๋“  ๋ฏธ๋””์–ด์— ์ ‘๊ทผํ•˜๋„๋ก ํ—ˆ์šฉํ•ด ์ฃผ์„ธ์š”.';

@override
String get goToSystemSettings => '์‹œ์Šคํ…œ ์„ค์ • ์ด๋™';

@override
String get accessLimitedAssets => '์ œํ•œ๋œ ์ ‘๊ทผ์œผ๋กœ ๊ณ„์†';

@override
String get accessiblePathName => '์ ‘๊ทผ ๊ฐ€๋Šฅํ•œ ๋ฏธ๋””์–ด';

@override
String get sTypeAudioLabel => '์˜ค๋””์˜ค';

@override
String get sTypeImageLabel => '์ด๋ฏธ์ง€';

@override
String get sTypeVideoLabel => '๋น„๋””์˜ค';

@override
String get sTypeOtherLabel => '๋‹ค๋ฅธ ๋ฏธ๋””์–ด';

@override
String get sActionPlayHint => '์žฌ์ƒ';

@override
String get sActionPreviewHint => '๋ฏธ๋ฆฌ๋ณด๊ธฐ';

@override
String get sActionSelectHint => '์„ ํƒ';

@override
String get sActionSwitchPathLabel => '๊ฒฝ๋กœ ๋ณ€๊ฒฝ';

@override
String get sActionUseCameraHint => '์นด๋ฉ”๋ผ ์‚ฌ์šฉ';

@override
String get sNameDurationLabel => '๊ธฐ๊ฐ„';

@override
String get sUnitAssetCountLabel => '๊ฐœ';
}

1 change: 1 addition & 0 deletions test/test_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Widget defaultPickerTestApp({
Locale('ar'),
Locale('fr'),
Locale('vi'),
Locale('ko'),
],
locale: locale,
);
Expand Down

0 comments on commit 74ce214

Please sign in to comment.