-
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathSkipProject.swift
More file actions
3937 lines (3332 loc) · 137 KB
/
Copy pathSkipProject.swift
File metadata and controls
3937 lines (3332 loc) · 137 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright (c) 2023 - 2026 Skip
// Licensed under the GNU Affero General Public License v3.0
// SPDX-License-Identifier: AGPL-3.0-only
import Foundation
import SkipSyntax
struct MissingProjectFileError : LocalizedError {
var errorDescription: String?
}
struct AppVerifyError : LocalizedError {
var errorDescription: String?
}
enum ModuleMode {
case transpiled
case transpiledBridged
case native
case nativeBridged
case kotlincompat
var isNative: Bool {
switch self {
case .transpiled: return false
case .transpiledBridged: return false
case .native: return true
case .nativeBridged: return true
case .kotlincompat: return true
}
}
var isBridged: Bool {
switch self {
case .transpiled: return false
case .transpiledBridged: return true
case .native: return false
case .nativeBridged: return true
case .kotlincompat: return true
}
}
}
enum TestCaseMode: String, CaseIterable {
case testing
case xctest
}
struct ProjectOptionValues {
var projectName: String
var swiftPackageVersion: String
var iOSMinVersion: Double
var macOSMinVersion: Double?
var chain: Bool
var gitRepo: Bool
var appfair: Bool
var free: Bool
var zero: Bool
var github: Bool
var fastlane: Bool
var testCaseMode: TestCaseMode
/// Prior to iOS 26, the default macOS version is 3 below the iOS version in terms of API compatibility (i.e., iOS 18.0 == macOS 15.0)
var macOSMinVersionCalculated: Double {
macOSMinVersion ?? (iOSMinVersion < 26.0 ? iOSMinVersion - 3.0 : iOSMinVersion)
}
}
func isValidProjectName(_ name: String) -> String? {
let invalidDesc = "Project name must contain only lower-case letters or a dash"
// Ensure the name is not empty
guard !name.isEmpty else { return invalidDesc }
if name.count < 2 { return invalidDesc }
// Ensure the first character is an uppercase letter
if name != name.lowercased() { return invalidDesc }
// Define a character set with valid characters (letters, numbers)
let validCharacters = CharacterSet.alphanumerics.union(CharacterSet(charactersIn: "-"))
// Check if the name contains only valid characters
if !name.unicodeScalars.allSatisfy({ validCharacters.contains($0) }) {
return invalidDesc
}
return nil
}
func isValidModuleName(_ name: String) -> String? {
let invalidDesc = "ModuleName must be capitalized and contain only letters or numbers"
// Ensure the name is not empty
guard !name.isEmpty else { return invalidDesc }
if name.count < 2 { return invalidDesc }
// Ensure the first character is an uppercase letter
guard let firstChar = name.first, firstChar.isUppercase else { return invalidDesc }
// Define a character set with valid characters (letters, numbers)
let validCharacters = CharacterSet.alphanumerics
// Check if the name contains only valid characters
if !name.unicodeScalars.allSatisfy({ validCharacters.contains($0) }) {
return invalidDesc
}
return nil
}
func isValidBundleIdentifier(_ identifier: String) -> String? {
let invalidDesc = "The bundle identifier must be a dot-separated series of lowercase letters or numbers"
// Ensure the identifier is not empty
guard !identifier.isEmpty else { return invalidDesc }
// Ensure the identifier does not start or end with a period
guard !identifier.hasPrefix(".") && !identifier.hasSuffix(".") else { return invalidDesc }
// Ensure it does not contain consecutive periods
guard !identifier.contains("..") else { return invalidDesc }
// Define valid characters: letters, numbers, dash, and periods
let validCharacters = CharacterSet.alphanumerics.union(CharacterSet(charactersIn: ".-"))
// Check if all characters are valid
guard identifier.unicodeScalars.allSatisfy({ validCharacters.contains($0) }) else { return invalidDesc }
// Ensure it has at least two segments
let components = identifier.split(separator: ".")
guard components.count > 1 else { return invalidDesc }
return nil
}
class FrameworkProjectLayout {
var packageSwift: URL
init(root: URL, check: (URL, Bool) throws -> () = checkURLExists) rethrows {
self.packageSwift = try root.resolve("Package.swift", check: check)
}
/// A check that passes every time
static func noURLChecks(url: URL, isDirectory: Bool) {
}
/// A check that verifies that the file URL exists
static func checkURLExists(url: URL, isDirectory: Bool) throws {
var isDir: ObjCBool = false
if !FileManager.default.fileExists(atPath: url.path, isDirectory: &isDir) {
throw MissingProjectFileError(errorDescription: "Expected path at \(url.path) does not exist")
}
if isDir.boolValue != isDirectory {
throw MissingProjectFileError(errorDescription: "Expected path at \(url.path) should be a \(isDirectory ? "directory" : "file")")
}
}
/// Get the default Java package name for the given module, throwing an error if the Java package name contains a reserved keyword.
static func packageName(forModule moduleName: String) throws -> String {
// https://docs.oracle.com/javase/tutorial/java/nutsandbolts/_keywords.html
let keywords: Set<String> = ["abstract", "continue", "for", "new", "switch", "assert", "default", "goto", "package", "synchronized", "boolean", "do", "if", "private", "this", "break", "double", "implements", "protected", "throw", "byte", "else", "import", "public", "throws", "case", "enum", "instanceof", "return", "transient", "catch", "extends", "int", "short", "try", "char", "final", "interface", "static", "void", "class", "finally", "long", "strictfp", "volatile", "const", "float", "native", "super", "while"]
let pname = KotlinTranslator.packageName(forModule: moduleName)
let packageParts = pname.split(separator: ".")
for part in packageParts {
if keywords.contains(String(part)) {
throw InitError(errorDescription: "The module name \"\(moduleName)\" is invalid because the derived Java package name \"\(pname)\" contains a reserved keyword: \"\(part)\"")
}
}
return pname
}
static func createSkipLibrary(options: ProjectOptionValues, productName: String?, modules: [PackageModule], resourceFolder: String?, dir outputFolder: URL, app: Bool, nativeMode: NativeMode, moduleMode: ModuleMode, moduleTests createModuleTests: Bool, packageResolved packageResolvedURL: URL?) throws -> URL {
let projectName = options.projectName
if modules.isEmpty {
throw InitError(errorDescription: "Must specify at least one module name")
}
let validModuleCharacters = CharacterSet.alphanumerics.union(CharacterSet(charactersIn: "_"))
for module in modules {
if module.moduleName.rangeOfCharacter(from: validModuleCharacters.inverted) != nil {
throw InitError(errorDescription: "Module name contains an invalid character (must be alphanumeric): \(module.moduleName)")
}
}
let projectFolderURL = outputFolder // .appendingPathComponent(projectName, isDirectory: true)
try FileManager.default.createDirectory(at: projectFolderURL, withIntermediateDirectories: true)
let sourcesURL = try projectFolderURL.append(path: "Sources", create: true)
let license = options.defaultLicense(app: app)
var sourceHeader = license?.sourceHeader.appending("\n\n") ?? ""
let testSourceHeader = sourceHeader
var sourceFooter = ""
if moduleMode == .transpiledBridged {
// bridged code needs to be wrapped in a check for SKIP_BRIDGE
sourceHeader += "#if !SKIP_BRIDGE\n"
sourceFooter += "\n#endif\n"
}
// the part of a target parameter that will only include skip when zero is not set
let skipPluginArray = #"[.plugin(name: "skipstone", package: "skip")]"#
var products = """
products: [
"""
var targets = """
targets: [
"""
#if DEBUG
let skipPackageVersion = "1.0.0"
#else
let skipPackageVersion = skipVersion
#endif
var packageHeader = """
// swift-tools-version: \(options.swiftPackageVersion)
"""
packageHeader += """
// This is a Skip (https://skip.dev) package.
import PackageDescription
"""
var packageDependencies: [String] = [
".package(url: \"https://source.skip.tools/skip.git\", from: \"\(skipPackageVersion)\")"
]
for moduleIndex in modules.indices {
let module = modules[moduleIndex]
let moduleName = module.moduleName
let modulePackage = try packageName(forModule: moduleName)
// the isAppModule is the initial module in the list when we specify we want to create an app module
let isAppModule = app == true && moduleIndex == modules.startIndex
// the model module is the second in the chain
let isModelModule = app == true && moduleIndex == modules.startIndex + 1
// a native module is either the second module for an app project, or any module for a non-app --native project
let native = moduleMode.isNative
let isNativeAppModule = isAppModule && nativeMode.contains(.nativeApp)
let isNativeModule = native && (isModelModule || !app || isNativeAppModule)
// we output the model when it is the second module, or when there is only a single top-level app module
let shouldOutputModel = isModelModule || (app == true && modules.count == 1)
// this is the final module in the chain, which will add a dependency on SkipFoundation
let isFinalModule = moduleIndex == modules.endIndex - 1
// the subsequent module
let nextModule = moduleIndex < modules.endIndex - 1 ? modules[moduleIndex+1] : nil
let nextModuleName = nextModule?.moduleName
let sourceDir = try sourcesURL.append(path: moduleName, create: true)
// modules that are dependent on the native module do not run the skipstone plugin or have resources
let isDependentNativeModule = native && moduleIndex > 1
if isNativeAppModule || !isDependentNativeModule {
let sourceSkipDir = try sourceDir.append(path: "Skip", create: true)
let sourceSkipYamlFile = sourceSkipDir.appending(path: "skip.yml")
let skipYamlGeneric = """
# Skip configuration for \(moduleName) module
#
# Kotlin dependencies and Gradle build options for this module can be configured here
#build:
# contents:
# - block: 'dependencies'
# contents:
# - 'implementation("androidx.compose.runtime:runtime")'
"""
var skipYamlModule = skipYamlGeneric
if isNativeModule && !(isAppModule && !isNativeAppModule) {
skipYamlModule += """
# this is a natively-compiled Skip Fuse module
skip:
mode: 'native'
"""
if moduleMode == .kotlincompat {
skipYamlModule += """
bridging:
enabled: true
options: 'kotlincompat'
"""
} else if moduleMode == .nativeBridged {
skipYamlModule += """
bridging: true
"""
}
} else {
skipYamlModule += """
# this is a transpiled Skip Lite module
skip:
mode: 'transpiled'
"""
if moduleMode == .transpiledBridged {
skipYamlModule += """
bridging: true
"""
}
}
try skipYamlModule.write(to: sourceSkipYamlFile, atomically: false, encoding: .utf8)
}
let viewModelInAppModule = modules.count <= 1
// when the viewModel is part of the same package as the main app, do not include
let viewModelImport = """
import \(native ? "SkipFuse" : "OSLog")
"""
let viewModelLog = viewModelInAppModule ? "" : """
/// A logger for the \(moduleName) module.
let logger: Logger = Logger(subsystem: "\(modulePackage)", category: "\(moduleName)")
"""
let viewModelPublic = viewModelInAppModule ? "" : "public "
let viewModelSourceFile = sourceDir.appending(path: "ViewModel.swift")
let viewModelCode = """
\(sourceHeader)import Foundation
import Observation
\(viewModelImport)\(viewModelLog)
/// The Observable ViewModel used by the application.
@Observable public class ViewModel {
\(viewModelPublic)var items: [Item] = loadItems() {
didSet { saveItems() }
}
\(viewModelPublic)init() {
}
\(viewModelPublic)func clear() {
items.removeAll()
}
\(viewModelPublic)func isUpdated(_ item: Item) -> Bool {
item != items.first { i in
i.id == item.id
}
}
\(viewModelPublic)func save(item: Item) {
items = items.map { i in
i.id == item.id ? item : i
}
}
}
/// An individual item held by the ViewModel
\(viewModelPublic)struct Item : Identifiable, Hashable, Codable {
\(viewModelPublic)let id: UUID
\(viewModelPublic)var date: Date
\(viewModelPublic)var favorite: Bool
\(viewModelPublic)var title: String
\(viewModelPublic)var notes: String
\(viewModelPublic)init(id: UUID = UUID(), date: Date = .now, favorite: Bool = false, title: String = "", notes: String = "") {
self.id = id
self.date = date
self.favorite = favorite
self.title = title
self.notes = notes
}
\(viewModelPublic)var itemTitle: String {
!title.isEmpty ? title : dateString
}
\(viewModelPublic)var dateString: String {
date.formatted(date: .complete, time: .omitted)
}
\(viewModelPublic)var dateTimeString: String {
date.formatted(date: .abbreviated, time: .shortened)
}
}
/// Utilities for defaulting and persising the items in the list
extension ViewModel {
private static let savePath = URL.applicationSupportDirectory.appendingPathComponent("appdata.json")
fileprivate static func loadItems() -> [Item] {
do {
let start = Date.now
let data = try Data(contentsOf: savePath)
defer {
let end = Date.now
logger.info("loaded \\(data.count) bytes from \\(Self.savePath.path) in \\(end.timeIntervalSince(start)) seconds")
}
return try JSONDecoder().decode([Item].self, from: data)
} catch {
// perhaps the first launch, or the data could not be read
logger.warning("failed to load data from \\(Self.savePath), using defaultItems: \\(error)")
let defaultItems = (1...365).map { Date(timeIntervalSinceNow: Double($0 * 60 * 60 * 24 * -1)) }
return defaultItems.map({ Item(date: $0) })
}
}
fileprivate func saveItems() {
do {
let start = Date.now
let data = try JSONEncoder().encode(items)
try FileManager.default.createDirectory(at: URL.applicationSupportDirectory, withIntermediateDirectories: true)
try data.write(to: Self.savePath)
let end = Date.now
logger.info("saved \\(data.count) bytes to \\(Self.savePath.path) in \\(end.timeIntervalSince(start)) seconds")
} catch {
logger.error("error saving data: \\(error)")
}
}
}
"""
if shouldOutputModel {
try viewModelCode.write(to: viewModelSourceFile, atomically: false, encoding: .utf8)
} else if !isAppModule {
// we need to output *something*, so just make an empty class
let moduleSwiftFile = sourceDir.appending(path: "\(moduleName).swift")
var moduleCode = """
\(sourceHeader)import Foundation
public class \(moduleName)Module {
"""
if isNativeModule {
moduleCode += """
public static func create\(moduleName)Type(id: UUID, delay: Double? = nil) async throws -> \(moduleName)Type {
if let delay = delay {
try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
}
return \(moduleName)Type(id: id)
}
/// An example of a type that can be bridged between Swift and Kotlin
public struct \(moduleName)Type: Identifiable, Hashable, Codable {
public var id: UUID
}
"""
}
moduleCode += """
}
\(sourceFooter)
"""
try moduleCode.write(to: moduleSwiftFile, atomically: false, encoding: .utf8)
}
let resourcesAttribute: String = resourceFolder.flatMap { resourceFolder in ", resources: [.process(\"\(resourceFolder)\")]" } ?? ""
if let resourceFolder = resourceFolder, !resourceFolder.isEmpty {
let sourceResourcesDir = try sourceDir.append(path: resourceFolder, create: true)
let sourceResourcesFile = sourceResourcesDir.appending(path: "Localizable.xcstrings")
try """
{
"sourceLanguage" : "en",
"strings" : {
"%lld Items" : {
"comment" : "Header title for a list that contains the number of items",
"localizations" : {
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "%lld elementos"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "%lld éléments"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "アイテム数 %lld"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "%lld 个条目"
}
}
}
},
"Add" : {
"comment" : "Button in items list that will cause a new item to be added",
"localizations" : {
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Añadir"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Ajouter"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "追加"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "添加"
}
}
}
},
"Appearance" : {
"comment" : "Settings select label for the interface style of the controls (light, dark, or default)",
"localizations" : {
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Apariencia"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Apparence"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "外観"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "外观"
}
}
}
},
"Cancel" : {
"comment" : "Button title indicating that the operation should be cancelled",
"localizations" : {
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Cancelar"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Annuler"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "キャンセル"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "取消"
}
}
}
},
"Dark" : {
"comment" : "Menu item indicating that the appearance should be in dark mode",
"localizations" : {
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Oscuro"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Sombre"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "ダーク"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "深色"
}
}
}
},
"Date" : {
"comment" : "Item editor form label for the Date field",
"localizations" : {
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Fecha"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Date"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "日付"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "日期"
}
}
}
},
"Favorite" : {
"comment" : "Item editor title label for marking the item as a favorite",
"localizations" : {
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Favorito"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Favori"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "お気に入り"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "收藏"
}
}
}
},
"Hello [%@](https://skip.dev)!" : {
"comment" : "Welcome tab contents",
"localizations" : {
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "¡Hola [%@](https://skip.dev)!"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Bonjour [%@](https://skip.dev)!"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "こんにちは [%@](https://skip.dev)"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "你好 [%@](https://skip.dev)"
}
}
}
},
"Home" : {
"comment" : "Tab bar item title for the Home tab",
"localizations" : {
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Inicio"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Accueil"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "ホーム"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "首页"
}
}
}
},
"Light" : {
"comment" : "Menu item indicating that the appearance should be in light mode",
"localizations" : {
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Claro"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Clair"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "明るい"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "浅色"
}
}
}
},
"Name" : {
"comment" : "Placeholder title for the Name field in a form",
"localizations" : {
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Nombre"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Nom"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "名前"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "姓名"
}
}
}
},
"Notes" : {
"comment" : "Item editor form label for the Notes field",
"localizations" : {
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Notas"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Notes"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "ノート"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "笔记"
}
}
}
},
"Powered by [Skip](https://skip.dev)" : {
"comment" : "Link markdown text for the Powered by… label",
"localizations" : {
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Impulsado por [Skip](https://skip.dev)"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Fonctionnalités offertes par [Skip](https://skip.dev)"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "[Skip](https://skip.dev) を使って動かしています"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "由[Skip](https://skip.dev)提供支持"
}
}
}
},
"Save" : {
"comment" : "Button title indicating that the current contents should be saved",
"localizations" : {
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Guardar"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Enregistrer"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "保存"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "保存"
}
}
}
},
"Settings" : {
"comment" : "Tab bar item title for the Settings tab",
"localizations" : {
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Configuración"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Paramètres"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "設定"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "设置"
}
}
}
},
"System" : {
"comment" : "Menu item indicating that the appearance should be in the default system mode",
"localizations" : {
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Sistema"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Système"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "システム"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "系统"
}
}
}
},
"Title" : {
"comment" : "Label for the item editor form indicating the title of the item",
"localizations" : {
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Título"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Titre"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "タイトル"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "标题"
}
}
}
},
"Version %@ (%@)" : {
"comment" : "Settings label showing the current version of the app",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "Version %1$@ (%2$@)"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Versión %1$@ (%2$@)"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Version %1$@ (%2$@)"
}
},
"ja" : {