mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-19 04:49:37 +02:00
localization v2
This commit is contained in:
parent
6cf62cfb82
commit
91c0ec8c07
18 changed files with 432 additions and 101 deletions
|
@ -253,15 +253,6 @@ export let ADVENTURE_TYPES = [
|
|||
{ type: 'other', label: 'Other' }
|
||||
];
|
||||
|
||||
export function typeToString(type: string) {
|
||||
const typeObj = ADVENTURE_TYPES.find((t) => t.type === type);
|
||||
if (typeObj) {
|
||||
return typeObj.label;
|
||||
} else {
|
||||
return 'Unknown';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if an adventure has been visited.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue