Files
gpustack-ui/src/locales
gitlawrandjialin c025257fea feat(gpu-service): clone an instance template into the caller's scope
Add a Clone action to instance template cards. It reuses the create
flow prefilled from the source, dropping the source id and ownership so
the backend assigns a fresh id and scopes the copy to the caller's own
principal. Clone is offered on every visible template — including
admin-curated Global rows a non-admin can otherwise only view — so
users can fork a Global preset into their own organization without
admin involvement.

The prefilled name defaults to a `-clone` suffix (trimmed to the
63-char limit) so cloning within the same scope doesn't collide on the
unique name. Edit/Delete remain gated on ownership; Clone is always
available.
2026-07-08 16:27:40 +08:00
..
2025-03-28 19:15:57 +08:00
2024-11-22 10:00:34 +08:00
2025-03-28 15:03:37 +08:00
2026-04-24 14:28:30 +08:00
2025-03-04 18:01:29 +08:00
2026-04-24 14:28:30 +08:00
2024-11-22 10:00:34 +08:00

Adding a New Language Configuration

To add a new language configuration, follow these steps:

1. Duplicate an Existing Language Directory

  • Choose any existing language directory that you are familiar with, and duplicate it.
  • Name the new directory according to the lang attribute specified in lang-config-map.tsx.

2. Create a New .ts File in the Current Directory

  • In the locales directory, create a .ts file named to align with the new directory.
  • Copy the contents of the en-US.ts file into this new .ts file.
  • Update the following line to match your new language directory:
    const requireContext = require.context(
      `./{new-language-directory}`,
      false,
      /\.ts$/
    );
    

3. Translate Each Attribute Value

  • Open the .ts file in the new directory.

  • For each key-value pair:

    • If a translation is available, replace the value with the translated text.
    • If no translation is available, keep the English value as default.
  • Note: Keeping the English text as the default ensures the application remains functional even if some translations are missing.

4. Finalize the Configuration

  • Review and ensure all translations are complete.
  • If any translations are missing, they will default to English.
  • Your new language configuration is now ready for use!

5. Verify that all language keys are consistent.

npm run check:locales