Skip to content

Commit

Permalink
Enhance the documentation quality (#117)
Browse files Browse the repository at this point in the history
* docs: fix a repeated typo in the word initializer everywhere

* docs: fix a typo in a link preview

* docs: fix a typo in a mark comment

* docs: fix a typo in the word `language` in a comment

* test: fix a typo in the word `because` in a resource file
  • Loading branch information
MojtabaHs authored Oct 15, 2024
1 parent f8f99ed commit 14c974a
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 17 deletions.
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

0 comments on commit 14c974a

Please sign in to comment.