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

Model Setup for String Catalog #14

Merged
merged 21 commits into from
Jan 5, 2024
Merged
Changes from 1 commit
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
19 changes: 18 additions & 1 deletion StringCatalogEnum/Sources/StringCatalogEnum/model.swift
superarts marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,21 @@ struct XCStrings: Decodable {
let version: String
let strings: [String: String]
}
*/
*/
superarts marked this conversation as resolved.
Show resolved Hide resolved
struct XCStrings: Decodable {
superarts marked this conversation as resolved.
Show resolved Hide resolved
let strings: [String: StringInfo]
}

struct StringInfo: Decodable {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it the best practice to put all structs in the same source file?

let extractionState: String?
let localizations: [String: Localization]
}

struct Localization: Decodable {
let stringUnit: StringUnit
}

struct StringUnit: Decodable {
let state: String
let value: String
}