mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #60707 from xedin/switch-to-string-format-for-locale
[Localization] Switch diagnostics/localization to `.strings` format
This commit is contained in:
@@ -1452,7 +1452,7 @@ static bool ParseDiagnosticArgs(DiagnosticOptions &Opts, ArgList &Args,
|
||||
// for the specified locale code.
|
||||
llvm::SmallString<128> localizationPath(A->getValue());
|
||||
llvm::sys::path::append(localizationPath, Opts.LocalizationCode);
|
||||
llvm::sys::path::replace_extension(localizationPath, ".yaml");
|
||||
llvm::sys::path::replace_extension(localizationPath, ".strings");
|
||||
if (!llvm::sys::fs::exists(localizationPath)) {
|
||||
Diags.diagnose(SourceLoc(), diag::warning_cannot_find_locale_file,
|
||||
Opts.LocalizationCode, localizationPath);
|
||||
|
||||
Reference in New Issue
Block a user