Files
Momento/memento-note/public/scripts/direction-init.js
Antigravity e2672cd2c2
Some checks failed
CI / Lint, Test & Build (push) Failing after 1m19s
CI / Deploy production (on server) (push) Has been skipped
feat(notes): liens internes, onglet Réseau, living blocks et consentement IA
Rend les liens entre notes visibles et persistants (sync NoteLink au save, auto-save, graphe réseau rafraîchi), ajoute living blocks, Memory Echo, recherche globale, consentement IA explicite et consolide les prototypes design en architectural-grid.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-24 14:27:29 +00:00

21 lines
502 B
JavaScript

(function () {
try {
var lang = localStorage.getItem('user-language');
if (!lang) {
var c = document.cookie
.split(';')
.map(function (s) {
return s.trim();
})
.find(function (s) {
return s.startsWith('user-language=');
});
if (c) lang = c.split('=')[1];
}
if (lang === 'fa' || lang === 'ar') {
document.documentElement.dir = 'rtl';
document.documentElement.lang = lang;
}
} catch (e) {}
})();