You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently to get the desired output, Twine file format looks like this :
[[Login]]
[Login.loginButton]
en = Login
[Login.emailAddressFieldHeader]
en = Email Address
[Login.passwordFieldHeader]
en = Password
[Login.forgotPassword]
en = Forgot your password?
Feature requested would instead add the section header as a namespace for the key. Twine file format would look like this :
[[Login]]
[loginButton]
en = Login
[emailAddressFieldHeader]
en = Email Address
[passwordFieldHeader]
en = Password
[forgotPassword]
en = Forgot your password?
This is especially useful when Twine / Localizable strings are used with SwiftGen or other code generation tools. Example output of SwiftGen when we use namespaces :
internal enum Login {
/// Login
internal static let loginButton = L10n.tr("Localizable", "Login.loginButton")
/// Email Address
internal static let emailAddressFieldHeader = L10n.tr("Localizable", "Login.emailAddressFieldHeader")
/// Forgot your password?
internal static let forgotPassword = L10n.tr("Localizable", "Login.forgotPassword")
/// Reset Password
internal static let forgotPasswordButton = L10n.tr("Localizable", "Login.forgotPasswordButton")
/// Enter the email associated with your SHOEBOX QuickTest account. If found, we’ll send you instructions on how to reset your password.
internal static let forgotPasswordSubheader = L10n.tr("Localizable", "Login.forgotPasswordSubheader")
}
The text was updated successfully, but these errors were encountered:
its useful for iOS , but not for android
also some iOS devs like to set to Section something like: MARK: MyController for quick navigate from generated files from SwiftGen
for example
[[MARK: MyLoginController]]
[Login.loginButton]
en = Login
[Login.emailAddressFieldHeader]
en = Email Address
[Login.passwordFieldHeader]
en = Password
[Login.forgotPassword]
en = Forgot your password?
It would be great to have an option to use Section Header as namespace for a key for strings.
Example desired output:
Currently to get the desired output, Twine file format looks like this :
Feature requested would instead add the section header as a namespace for the key. Twine file format would look like this :
This is especially useful when Twine / Localizable strings are used with SwiftGen or other code generation tools. Example output of SwiftGen when we use namespaces :
The text was updated successfully, but these errors were encountered: