From 5dac6731cbb99f3374898cf6a1558edb222d323b Mon Sep 17 00:00:00 2001 From: Luminessa Starlight Date: Tue, 22 Jul 2025 14:12:32 -0400 Subject: [PATCH] Docs: Add note for how to enable a feature toggle in development (#108404) add note for how to enable a feature toggle in development --- contribute/feature-toggles.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/contribute/feature-toggles.md b/contribute/feature-toggles.md index 2a5899e166b..8e81c9c0c11 100644 --- a/contribute/feature-toggles.md +++ b/contribute/feature-toggles.md @@ -15,3 +15,12 @@ Examples: - [Backend](https://github.com/grafana/grafana/blob/feb2b5878b3e3ec551d64872c35edec2a0187812/pkg/services/authn/clients/session.go#L57): Use the `IsEnabled` function and pass in your feature toggle. - [Frontend](https://github.com/grafana/grafana/blob/feb2b5878b3e3ec551d64872c35edec2a0187812/public/app/features/search/service/folders.ts#L14): Check the config for your feature toggle. + +## Enabling toggles in development + +Add the feature toggle to the feature_toggle section in your custom.ini, for example: + +``` +[feature_toggles] +localeFormatPreference=true +```