Update docs
This commit is contained in:
parent
91b96cb9f6
commit
bdd9c0544c
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
## 1.0
|
## 1.0
|
||||||
|
|
||||||
After a lot of waiting and stabilizing, I think it's time to push the major release button.
|
I think it's finally time to push the major release button.
|
||||||
|
|
||||||
This version drastically improves documentation and ships with a DocC documentation archive.
|
This version drastically improves documentation and ships with a DocC documentation archive.
|
||||||
|
|
||||||
|
|
|
@ -9,11 +9,11 @@
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This protocol can be implemented by a class that implements
|
This protocol can be implemented any ``Translator`` that is
|
||||||
`Translator` and also can change the the app's locale.
|
also capable of changing the app's current locale.
|
||||||
|
|
||||||
`LocalizationService` should post `LocalizationNotification`
|
Implementations of this protocol should make sure to post a
|
||||||
notifications when the app locale changes.
|
``LocalizationNotification`` when the app locale changes.
|
||||||
*/
|
*/
|
||||||
public protocol LocalizationService: Translator {
|
public protocol LocalizationService: Translator {
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,8 @@
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This `Translator` translates keys using `NSLocalizedString`.
|
This standard ``Translator`` implementation translates keys
|
||||||
|
using `NSLocalizedString`.
|
||||||
*/
|
*/
|
||||||
public class StandardTranslator: Translator {
|
public class StandardTranslator: Translator {
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This protocol can be implemented by any class that can take
|
This protocol can be implemented by any classes that can be
|
||||||
a localization key and translate it in one way or another.
|
used to translate a localized string synchronously.
|
||||||
*/
|
*/
|
||||||
public protocol Translator: AnyObject {
|
public protocol Translator: AnyObject {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue