Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## [1.2.1] - 2026-10-24

### Added
- Picking an output folder inside another assembly definition (directly or through an `.asmref`) offers to add
the references the generated code needs to that `.asmdef`, or to give the code its own `.asmdef`. The
**Output** settings show which assembly the code compiles into, and generation warns about missing references.

### Changed
- Restyled settings: collapsible sections, consistent label widths, options that do not apply are greyed out,
and a shared toolbar (Regenerate, Verify, Open Output Folder, Setup Wizard) with a last-run summary. Every
setting can be found through the Project Settings search.

### Fixed
- A folder picked with **Browse** was not saved.
- `AssemblyBuilder` obsolete warning in the editor tests on Unity 6.5.

## [1.2.0] - 2026-10-24

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Severnbli.LocalizationCodegen.Installer
public static partial class Installer
{
public const string PackageId = "com.severnbli.localization-codegen";
public const string Version = "1.2.0";
public const string Version = "1.2.1";

static Installer()
{
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Add the scoped registry and the dependency to `Packages/manifest.json`:
}
],
"dependencies": {
"com.severnbli.localization-codegen": "1.2.0"
"com.severnbli.localization-codegen": "1.2.1"
}
}
```
Expand Down Expand Up @@ -319,7 +319,7 @@ Open **Project Settings > Localization Codegen**, or **Window > Localization Cod
| Setting | Default | Description |
|---|---|---|
| Namespace | `Localization` | Namespace of generated classes. Empty or whitespace means the global namespace. |
| Output Folder | `Assets/Generated/Localization` | Must be inside `Assets`. Changing it removes generated files from the old folder. |
| Output Folder | `Assets/Generated/Localization` | Must be inside `Assets`. Changing it removes generated files from the old folder. Inside another `.asmdef`, you are offered to add the references the code needs. |
| String Tables | on | Generate classes for string table collections. Disabling deletes the matching files on the next run. |
| Asset Tables | on | Generate classes for asset table collections. Disabling deletes the matching files on the next run. |
| Regenerate On Changes | on | Debounced automatic regeneration after table edits and external (VCS) changes. |
Expand All @@ -331,7 +331,7 @@ Open **Project Settings > Localization Codegen**, or **Window > Localization Cod
| Naming Convention | `Keep` | `Keep` or `PascalCase`. |
| Key Separators | empty | Characters that create nested classes, e.g. `/`. |
| UniTask Members | off | Also emit [`…Async` members](#unitask) returning `UniTask`. Requires UniTask. |
| Generate .asmdef | off | Write an assembly definition into the output folder. |
| Generate .asmdef | off | Write an assembly definition into the output folder, so the generated code gets its own assembly. |
| Fail CI On Smart String Mismatch | off | Make `CheckBatch` fail on locale placeholder mismatches. |

The window also has **Regenerate Now**, **Open Output Folder** and **Run Setup Wizard** buttons, and lists the warnings of the last run.
Expand Down Expand Up @@ -360,7 +360,7 @@ For clean diffs, add this to `.gitattributes`:

- Only files in the output folder whose first line is `// <auto-generated by Localization Codegen>` are created, overwritten or deleted. Don't edit generated files by hand.
- A manifest in the project settings remembers the last output folder, so changing the folder or namespace does not leave duplicate types behind.
- If you move generated code into your own assembly definition, enable **Generate .asmdef**, or reference `Unity.Localization` and `com.severnbli.localization-codegen.Runtime` manually (plus `UniTask` and `com.severnbli.localization-codegen.UniTask` for UniTask members).
- If the output folder is inside one of your assembly definitions (directly or through an `.asmref`), the generated code compiles into that assembly, which must reference `com.severnbli.localization-codegen.Runtime` and `Unity.Localization` (plus `UniTask` and `com.severnbli.localization-codegen.UniTask` for UniTask members). When you pick such a folder you are asked to **Add References** to that `.asmdef` for you, or to **Use Separate .asmdef** (**Generate .asmdef**). The **Output** section keeps showing which assembly the code compiles into, and generation warns while references are missing.
- The synchronous members block until the table is loaded and are not supported by Addressables on WebGL. Use [UniTask members](#unitask), or `LocalizedTables.GetStringAsync` / `GetAssetAsync`, there.
- If `LocalizationSettings` are missing at runtime, generated members return the table key (and log once) instead of throwing.
- The generator is editor-only; generated C# files have no runtime dependency on the generator assembly.
Expand Down
16 changes: 16 additions & 0 deletions Unity-Package/Assets/root/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## [1.2.1] - 2026-10-24

### Added
- Picking an output folder inside another assembly definition (directly or through an `.asmref`) offers to add
the references the generated code needs to that `.asmdef`, or to give the code its own `.asmdef`. The
**Output** settings show which assembly the code compiles into, and generation warns about missing references.

### Changed
- Restyled settings: collapsible sections, consistent label widths, options that do not apply are greyed out,
and a shared toolbar (Regenerate, Verify, Open Output Folder, Setup Wizard) with a last-run summary. Every
setting can be found through the Project Settings search.

### Fixed
- A folder picked with **Browse** was not saved.
- `AssemblyBuilder` obsolete warning in the editor tests on Unity 6.5.

## [1.2.0] - 2026-10-24

### Added
Expand Down
Loading
Loading