Add visibility parameters to control scope of generated extension
Some checks failed
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit

This commit is contained in:
2025-07-18 11:53:46 +02:00
parent beca2c6b2b
commit 7162f13166
61 changed files with 1511 additions and 791 deletions

View File

@ -1,4 +1,4 @@
// Generated by ResgenSwift.Strings.Stringium 2.1.0
// Generated by ResgenSwift.Strings.Stringium 2.2.0
import UIKit
@ -6,7 +6,7 @@ fileprivate let kStringsFileName = "sampleStrings"
extension String {
enum KeyGenAllScript: String {
public enum KeyGenAllScript: String {
case param_lang = "param_lang"
case generic_back = "generic_back"
case generic_loading_data = "generic_loading_data"
@ -14,7 +14,7 @@ extension String {
case test_equal_symbol = "test_equal_symbol"
case placeholders_test_one = "placeholders_test_one"
var keyPath: KeyPath<String, String> {
public var keyPath: KeyPath<String, String> {
switch self {
case .param_lang: return \String.param_lang
case .generic_back: return \String.generic_back
@ -33,7 +33,7 @@ extension String {
///
/// Comment :
/// No comment
var param_lang: String {
public var param_lang: String {
NSLocalizedString("param_lang", tableName: kStringsFileName, bundle: Bundle.main, value: "en", comment: "")
}
@ -44,7 +44,7 @@ extension String {
///
/// Comment :
/// No comment
var generic_back: String {
public var generic_back: String {
NSLocalizedString("generic_back", tableName: kStringsFileName, bundle: Bundle.main, value: "Back", comment: "")
}
@ -53,7 +53,7 @@ extension String {
///
/// Comment :
/// No comment
var generic_loading_data: String {
public var generic_loading_data: String {
NSLocalizedString("generic_loading_data", tableName: kStringsFileName, bundle: Bundle.main, value: "Loading data...", comment: "")
}
@ -62,7 +62,7 @@ extension String {
///
/// Comment :
/// No comment
var generic_welcome_firstname_format: String {
public var generic_welcome_firstname_format: String {
NSLocalizedString("generic_welcome_firstname_format", tableName: kStringsFileName, bundle: Bundle.main, value: "Welcome \"%@\" !", comment: "")
}
/// Translation in en :
@ -70,7 +70,7 @@ extension String {
///
/// Comment :
/// No comment
func generic_welcome_firstname_format(arg0: String) -> String {
public func generic_welcome_firstname_format(arg0: String) -> String {
String(format: self.generic_welcome_firstname_format, arg0)
}
@ -81,7 +81,7 @@ extension String {
///
/// Comment :
/// No comment
var test_equal_symbol: String {
public var test_equal_symbol: String {
NSLocalizedString("test_equal_symbol", tableName: kStringsFileName, bundle: Bundle.main, value: "1€ = 1 point !", comment: "")
}
@ -92,7 +92,7 @@ extension String {
///
/// Comment :
/// No comment
var placeholders_test_one: String {
public var placeholders_test_one: String {
NSLocalizedString("placeholders_test_one", tableName: kStringsFileName, bundle: Bundle.main, value: "You %%: %2$@ %1$@ Age: %3$d", comment: "")
}
/// Translation in en :
@ -100,7 +100,7 @@ extension String {
///
/// Comment :
/// No comment
func placeholders_test_one(arg0: String, arg1: String, arg2: Int) -> String {
public func placeholders_test_one(arg0: String, arg1: String, arg2: Int) -> String {
String(format: self.placeholders_test_one, arg0, arg1, arg2)
}
}