Update docs
This commit is contained in:
@@ -21,7 +21,7 @@ You can customize some elements of this template by overriding the following par
|
||||
| `enumName` | `L10n` | Allows you to change the name of the generated `enum` containing all string tables. |
|
||||
| `noComments` | N/A | Setting this parameter will disable the comments describing the translation of a key. |
|
||||
| `publicAccess` | N/A | If set, the generated constants will be marked as `public`. Otherwise, they'll be declared `internal`. |
|
||||
| `localizeFunction` | `NSLocalizedString` | Allows you to set your own custom localization function. Your custom function must have the same signature as the one provided by `Foundation`, i.e. `yourFunctionName(_:tableName:bundle:comment:)` |
|
||||
| `lookupFunction` | N/A | Allows you to set your own custom localization function. The function needs to accepts 2 parameters: the localization key (`String`), and the localization table (`String`). If the function has named parameters, you must provide the complete function signature, including those named parameters – e.g. `yourFunctionName(forKey:table:)`. |
|
||||
| `forceFileNameEnum` | N/A | Setting this parameter will generate an `enum <FileName>` _even if_ only one FileName was provided as input. |
|
||||
|
||||
## Generated Code
|
||||
|
||||
@@ -21,7 +21,7 @@ You can customize some elements of this template by overriding the following par
|
||||
| `enumName` | `L10n` | Allows you to change the name of the generated `enum` containing all string tables. |
|
||||
| `noComments` | N/A | Setting this parameter will disable the comments describing the translation of a key. |
|
||||
| `publicAccess` | N/A | If set, the generated constants will be marked as `public`. Otherwise, they'll be declared `internal`. |
|
||||
| `localizeFunction` | `NSLocalizedString` | Allows you to set your own custom localization function. Your custom function must have the same signature as the one provided by `Foundation`, i.e. `yourFunctionName(_:tableName:bundle:comment:)` |
|
||||
| `lookupFunction` | N/A | Allows you to set your own custom localization function. The function needs to accepts 2 parameters: the localization key (`String`), and the localization table (`String`). If the function has named parameters, you must provide the complete function signature, including those named parameters – e.g. `yourFunctionName(forKey:table:)`. |
|
||||
| `forceFileNameEnum` | N/A | Setting this parameter will generate an `enum <FileName>` _even if_ only one FileName was provided as input. |
|
||||
|
||||
## Generated Code
|
||||
|
||||
@@ -27,7 +27,7 @@ You can customize some elements of this template by overriding the following par
|
||||
| `enumName` | `L10n` | Allows you to change the name of the generated `enum` containing all string tables. |
|
||||
| `noComments` | N/A | Setting this parameter will disable the comments describing the translation of a key. |
|
||||
| `publicAccess` | N/A | If set, the generated constants will be marked as `public`. Otherwise, they'll be declared `internal`. |
|
||||
| `localizeFunction` | `NSLocalizedString` | Allows you to set your own custom localization function. Your custom function must have the same signature as the one provided by `Foundation`, i.e. `yourFunctionName(_:tableName:bundle:comment:)` |
|
||||
| `lookupFunction` | N/A | Allows you to set your own custom localization function. The function needs to accepts 2 parameters: the localization key (`String`), and the localization table (`String`). If the function has named parameters, you must provide the complete function signature, including those named parameters – e.g. `yourFunctionName(forKey:table:)`. |
|
||||
| `forceFileNameEnum` | N/A | Setting this parameter will generate an `enum <FileName>` _even if_ only one FileName was provided as input. |
|
||||
|
||||
## Generated Code
|
||||
|
||||
@@ -27,7 +27,7 @@ You can customize some elements of this template by overriding the following par
|
||||
| `enumName` | `L10n` | Allows you to change the name of the generated `enum` containing all string tables. |
|
||||
| `noComments` | N/A | Setting this parameter will disable the comments describing the translation of a key. |
|
||||
| `publicAccess` | N/A | If set, the generated constants will be marked as `public`. Otherwise, they'll be declared `internal`. |
|
||||
| `localizeFunction` | `NSLocalizedString` | Allows you to set your own custom localization function. Your custom function must have the same signature as the one provided by `Foundation`, i.e. `yourFunctionName(_:tableName:bundle:comment:)` |
|
||||
| `lookupFunction` | N/A | Allows you to set your own custom localization function. The function needs to accepts 2 parameters: the localization key (`String`), and the localization table (`String`). If the function has named parameters, you must provide the complete function signature, including those named parameters – e.g. `yourFunctionName(forKey:table:)`. |
|
||||
| `forceFileNameEnum` | N/A | Setting this parameter will generate an `enum <FileName>` _even if_ only one FileName was provided as input. |
|
||||
|
||||
## Generated Code
|
||||
|
||||
Reference in New Issue
Block a user