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>
21 lines
502 B
JavaScript
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) {}
|
|
})();
|