Skip to content

Migrate to new CSV locale manager#11

Open
pniedzielski wants to merge 3 commits intomainfrom
csv-locale-manager
Open

Migrate to new CSV locale manager#11
pniedzielski wants to merge 3 commits intomainfrom
csv-locale-manager

Conversation

@pniedzielski
Copy link
Owner

No description provided.

@pniedzielski pniedzielski requested a review from Copilot August 25, 2025 00:45
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates the plugin from a JSON-based locale system to a new CSV-based locale manager. The change involves updating the locale initialization, replacing all references from the shorthand lm to the full locale_manager property, and converting locale data from JSON format to CSV format.

  • Updated plugin initialization to use the new CSV locale manager with legacy mode disabled
  • Replaced all self.lm.get() calls with self.locale_manager.get() throughout the codebase
  • Converted locale data from en_US.json format to locales.csv format

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
main.py Updated plugin initialization and replaced all locale manager references
locales/en_US.json Removed JSON locale file
locales.csv Added CSV locale file with same translation data
actions/TimerSourceActionBase.py Updated locale manager references
actions/SetSplitsPath.py Updated locale manager references
actions/SetLayoutPath.py Updated locale manager references
actions/OBSLiveSplitOneActionBase.py Updated locale manager references

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

A lot of new features have been added to StreamController since this
plugin was written.  In order to use these, this patch bumps the
minimum version of StreamController going forward.
One of the new features of StreamController is the CSV locale manager,
which replaces the legacy JSON directory locale manager.  This patch
switches over to the new CSV format.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants