Adds dynamic Claude model fetching and management #1
@@ -146,7 +146,9 @@ export class NotePromptsCommand {
|
|||||||
* @returns Formatted markdown string ready for insertion
|
* @returns Formatted markdown string ready for insertion
|
||||||
*/
|
*/
|
||||||
private formatPrompts(prompts: string[]): string {
|
private formatPrompts(prompts: string[]): string {
|
||||||
const timestamp = new Intl.DateTimeFormat('en-US', {
|
// Use user's locale for timestamp formatting to respect regional preferences
|
||||||
|
const locale = navigator?.language ?? 'en-US';
|
||||||
|
const timestamp = new Intl.DateTimeFormat(locale, {
|
||||||
year: 'numeric',
|
year: 'numeric',
|
||||||
month: 'short',
|
month: 'short',
|
||||||
day: 'numeric',
|
day: 'numeric',
|
||||||
|
|||||||
Reference in new issue
Block a user