Skip to content
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

Enhance the documentation quality #117

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ If you wish, you can open the file printed in the log output to review the gener

This code is compiled as part of your target, so is accessible just like code you would write yourself:

![A screenshot of the new constants being used in some Foundation-baed model code](SPM-Usage)
![A screenshot of the new constants being used in some Foundation-based model code](SPM-Usage)

## See Also

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extension SourceFile.StringExtension {
BundleDescriptionEnum(stringsTable: self)
}

// MARK: Properites
// MARK: Properties

var storedProperties: [Property] {
[keyProperty, argumentsProperty, tableProperty]
Expand Down Expand Up @@ -85,7 +85,7 @@ extension SourceFile.StringExtension {

In Foundation, you can resolve the localized string using the system language
with the `String`.``Swift/String/init(\(sourceFile.tableVariableIdentifier):locale:)``
intializer:
initializer:

```swift
// Accessing the localized value directly
Expand Down
2 changes: 1 addition & 1 deletion Sources/xcstrings-tool/Utilities/InputParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ struct InputParser {
throw Error.notALocalizedResource(fileURL)
}

// Include the file if the language matches the developmentLaguage
// Include the file if the language matches the developmentLanguage
let language = lprojDir.replacingOccurrences(of: ".lproj", with: "", options: .caseInsensitive)
return language.localizedCaseInsensitiveCompare(developmentLanguage) == .orderedSame
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/PluginTests/Resources/fr.lproj/Legacy.strings
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"Ignored" = "This file should be ignored becuase it is not the development language";
"Ignored" = "This file should be ignored because it is not the development language";
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extension String {
///
/// In Foundation, you can resolve the localized string using the system language
/// with the `String`.``Swift/String/init(formatSpecifiers:locale:)``
/// intializer:
/// initializer:
///
/// ```swift
/// // Accessing the localized value directly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extension String {
///
/// In Foundation, you can resolve the localized string using the system language
/// with the `String`.``Swift/String/init(localizable:locale:)``
/// intializer:
/// initializer:
///
/// ```swift
/// // Accessing the localized value directly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extension String {
///
/// In Foundation, you can resolve the localized string using the system language
/// with the `String`.``Swift/String/init(multiline:locale:)``
/// intializer:
/// initializer:
///
/// ```swift
/// // Accessing the localized value directly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extension String {
///
/// In Foundation, you can resolve the localized string using the system language
/// with the `String`.``Swift/String/init(positional:locale:)``
/// intializer:
/// initializer:
///
/// ```swift
/// // Accessing the localized value directly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extension String {
///
/// In Foundation, you can resolve the localized string using the system language
/// with the `String`.``Swift/String/init(simple:locale:)``
/// intializer:
/// initializer:
///
/// ```swift
/// // Accessing the localized value directly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extension String {
///
/// In Foundation, you can resolve the localized string using the system language
/// with the `String`.``Swift/String/init(substitution:locale:)``
/// intializer:
/// initializer:
///
/// ```swift
/// // Accessing the localized value directly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extension String {
///
/// In Foundation, you can resolve the localized string using the system language
/// with the `String`.``Swift/String/init(variations:locale:)``
/// intializer:
/// initializer:
///
/// ```swift
/// // Accessing the localized value directly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extension String {
///
/// In Foundation, you can resolve the localized string using the system language
/// with the `String`.``Swift/String/init(legacy:locale:)``
/// intializer:
/// initializer:
///
/// ```swift
/// // Accessing the localized value directly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extension String {
///
/// In Foundation, you can resolve the localized string using the system language
/// with the `String`.``Swift/String/init(legacy:locale:)``
/// intializer:
/// initializer:
///
/// ```swift
/// // Accessing the localized value directly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extension String {
///
/// In Foundation, you can resolve the localized string using the system language
/// with the `String`.``Swift/String/init(legacy:locale:)``
/// intializer:
/// initializer:
///
/// ```swift
/// // Accessing the localized value directly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extension String {
///
/// In Foundation, you can resolve the localized string using the system language
/// with the `String`.``Swift/String/init(localizable:locale:)``
/// intializer:
/// initializer:
///
/// ```swift
/// // Accessing the localized value directly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extension String {
///
/// In Foundation, you can resolve the localized string using the system language
/// with the `String`.``Swift/String/init(localizable:locale:)``
/// intializer:
/// initializer:
///
/// ```swift
/// // Accessing the localized value directly
Expand Down
Loading