Files
yavsc/Yavsc/noteLocalization.md

17 lines
422 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# localisation:
## Implémentation
* Implementer l'ActionFilter, qui regarde l'entête `accept-language`
* Initier l'espace de nom de la localisation avec la classe vide
* Ecrire les ressources
## Usage
* Enregistrer le filtre ala scoped
* Décorer le controleur avec l'attribut `[ServiceFilter(typeof(LanguageActionFilter))]`
* Injection de la ressource
* Extensions de nom de fichier (ex: /Home/Index.fr.cshtml)