8000 [DX] Detect translation file name changes in development · Issue #11530 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[DX] Detect translation file name changes in development #11530
Closed
@wouterj

Description

@wouterj

The problem

When debug is enabled, you don't have to worry about the cache. If you change a file related to the cache, the cache is simply rebuild. However, there is one exception on this: Translation files.

  • When you add a new translation file, it is not automatically detected by the Translation caching system.
  • When you rename a translation file, it is not automatically detected

This means you have to clear the cache each time you do one of these actions. That's an action you simply forget to do, since it's not needed for any other cache system used by Symfony.

The Solution

Simply check if there are new translation files in the application on each request when debug is enabled. (we may want to create a new configuration setting to check for it, which is enabled by default in the SE)

Metadata

Metadata

Assignees

No one assigned

    Labels

    DXDX = Developer eXperience (anything that improves the experience of using Symfony)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0