Skip to content

Commit

Permalink
Make localization context public
Browse files Browse the repository at this point in the history
Enables directly initializing entities from JSON
  • Loading branch information
JP Wright committed Jul 12, 2017
1 parent 139e958 commit 1550c24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Sources/Locale.swift
Expand Up @@ -41,7 +41,10 @@ public class Locale: ImmutableMappable {
}
}

internal class LocalizationContext: MapContext {
/**
*/
public class LocalizationContext: MapContext {

// An ordered collection of locales representing the fallback chain.
internal let locales: [LocaleCode: Locale]
Expand Down
3 changes: 2 additions & 1 deletion Sources/Space.swift
Expand Up @@ -24,7 +24,8 @@ public class Space: Resource {
return sys.type
}

internal let localizationContext: LocalizationContext
/// Context for holding information about the fallback chain of locales for the Space.
public let localizationContext: LocalizationContext

// MARK: <ImmutableMappable>

Expand Down

0 comments on commit 1550c24

Please sign in to comment.